Knowledge Base
Search our Knowledge Base to learn more about educational digital
services and solutions.
lsof -i :53 which will produce output similar to the following COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
systemd-r 1051 systemd-resolve 12u IPv4 25710 0t0 UDP localhost:domain
systemd-r 1051 systemd-resolve 13u IPv4 25711 0t0 TCP localhost:domain (LISTEN)Edit the following
/etc/systemd/resolved.conf
The file contents should replicate the following
[Resolve]
DNS=127.0.0.1
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
DNSStubListener=no
Create a sym link to the resolve.conf file
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
Restart the resolved service
systemctl daemon-reloadsystemctl restart systemd-resolved.service
Test port 53 is no longer in use using the following command
lsof -i :53
If successful no output will be produced you can now restart the unit
gl -s bind9-unit-name
