Knowledge Base

Search our Knowledge Base to learn more about educational digital
 services and solutions.
Back

Bind9 Unit – Disable port 53 on the GLServer host

Issue

When running the GLServer bind 9 unit the unit fails to start due to a conflicting DNS port (53) Confirm port 53 is in use by the local DNSresolver service with the following command 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)

Solution

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-reload
systemctl 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

                                                                                                                                                      Search