This happens because the port 53 on localhost, which is used for DNS, is already taken by another program. Ubuntu comes with a local DNS called systemd-resolved, which uses the address 127.0.0.53:53, thus preventing AdGuard Home from binding to 127.0.0.1:53. You can see this by running:
sudo lsof -i :53
The output should be similar to:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME systemd-r 14542 systemd-resolve 13u IPv4 86178 0t0 UDP 127.0.0.53:domain systemd-r 14542 systemd-resolve 14u IPv4 86179 0t0 TCP 127.0.0.53:domain
To fix this, you must either disable the systemd-resolved daemon or choose a different network interface and bind your AdGuard Home to an accessible IP address on it, such as the IP address of your router inside your network. But if you do need to listen on localhost, there are several solutions.
Firstly, AdGuard Home can detect such configurations and disable systemd-resolved for you if you press the Fix button located next to the address already in use message on the installation screen.
Secondly, if that doesn’t work, follow the instructions below. Note that if you’re using AdGuard Home with docker or snap, you’ll have to do this yourself.
Create the /etc/systemd/resolved.conf.d directory, if necessary:
sudo mkdir -p /etc/systemd/resolved.conf.d
Deactivate DNSStubListener and update DNS server address. To do that, create a new file, /etc/systemd/resolved.conf.d/adguardhome.conf, with the following content:
[Resolve]
DNS=127.0.0.1
DNSStubListener=no
Specifying 127.0.0.1 as the DNS server address is necessary. Otherwise the nameserver will be 127.0.0.53 which won’t work without DNSStubListener.
set timeout=5
set default=0
menuentry 'Boot from next volume' {
exit 1
}
添加Debian12网络启动,并添加了自动化安装脚本:
menuentry 'Install Debian' {
linux debian-installer/amd64/linux auto=true priority=critical vga=788 auto locale=zh_CN url=http://dns.a.v/preseed.cfg
initrd debian-installer/amd64/initrd.gz
}
openEuler的网络安装配置,同样添加了ks.cfg自动安装脚本:
menuentry 'openEuler 24.03 LTS SP2' --class openEuler --class gnu-linux --class gnu --class os {
linuxefi openEuler/vmlinuz ip=dhcp inst.ks=http://dns.a.v/ks.cfg inst.repo=http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-24.03-LTS-SP2/OS/x86_64
initrdefi openEuler/initrd.img
}
menuentry 'Kylin Server V10 SP3' --class red --class gnulinux --class gnu --class os {
linux Kylin/vmlinuz ro inst.geoloc=0 console=ttyAMA0 console=tty0 rd.iscsi.waitnet=0 ip=dhcp inst.repo=http://dns.a.v/Kylin-V10-SP3 inst.ks=http://dns.a.v/ksKylin.cfg
initrd Kylin/initrd.img
}
menuentry 'UOS Server v20 1070a' {
linuxefi uos/vmlinuz ip=dhcp inst.ks=http://dns.a.v/ksuos.cfg
initrdefi uos/initrd.img
}
Ubuntu的网络安装配置,并配置了自动安装脚本:
menuentry 'ubuntu server 26.04.1 lts' {
linux ubuntu/vmlinuz root=/dev/ram0 ramdisk_size=1500000 ip=dhcp iso-url=http://dns.a.v/ubuntu-26.04.1-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://dns.a.v/autoinstall ---
initrd ubuntu/initrd
}
三、添加传统bios模式的启动配置
以下这个参数添加入tftp目录的/home/tftp/menu.cfg
menu hshift 4
menu width 70
menu title GNU/Linux installer menu (BIOS mode)
include debian-installer/amd64/boot-screens/stdmenu.cfg
label Alpine
menu label ^Alpine Linux
linux alpine/vmlinuz-lts ip=dhcp modloop=http://dns.a.v/modloop-lts alpine_repo=http://mirrors.ustc.edu.cn/alpine/latest-stable/main
initrd alpine/initramfs-lts
label Debian Server
menu label ^Debian Server
linux debian-installer/amd64/linux preseed/url=http://dns.a.v/preseed.cfg auto=true priority=critical vga=788 locale=zh_CN interface=auto hostname=DB2026 domain=
initrd debian-installer/amd64/initrd.gz
label Ubuntu Server
menu label ^Ubuntu Server 26.04.1 lts
kernel ubuntu/vmlinuz
initrd ubuntu/initrd
# append url=http://dns.a.v/ubuntu/ ip=dhcp root=/dev/ram0 ramdisk_size=2500000 iso-url=http://dns.a.v/ubuntu-24.04.4-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://dns.a.v/autoinstall/ ---
append iso-url=http://dns.a.v/ubuntu-26.04.1-live-server-amd64.iso ip=dhcp root=/dev/ram0 ramdisk_size=2500000 autoinstall ds=nocloud-net;s=http://dns.a.v/autoinstall/ ---
#label Kylin Server
# menu label ^Kylin Server V10 SP3
# linux Kylin/vmlinuz ro inst.geoloc=0 console=ttyAMA0 console=tty0 rd.iscsi.waitnet=0 ip=dhcp inst.repo=http://dns.a.v/Kylin-V10-SP3 inst.ks=http://dns.a.v/ksKylin.cfg
# initrd Kylin/initrd.img
#label openEuler Server
# menu label ^openEuler-24.03-LTS-SP2
# linuxefi openEuler/vmlinuz ip=dhcp inst.ks=http://dns.a.v/ks.cfg inst.repo=http://mirrors.tuna.tsinghua.edu.cn/openeuler/openEuler-24.03-LTS-SP2/OS/x86_64
# initrdefi openEuler/initrd.img
#label UOS Server
# menu label UOS Server v20 1070a
# linuxefi uos/vmlinuz ip=dhcp inst.ks=http://dns.a.v/ksuos.cfg
# initrdefi uos/initrd.img
timeout 100
label local
menu label ^Boot from local drive
localboot 0
menu default