Port 53 bound after installation of May update?

Hi all,

after installation of the latest update 2023.05-1 (PI 3 version) my PI-HOLE failed to start. pi-hole is installed as a docker image and worked perfectly until I updated osmc to the latest version.
I have the suspicion that the update changed something around the usage of port 53. Could this be the case?

I just run the following command:

sudo lsof -i :53

Output:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
connmand 341 root 11u IPv4 10661 0t0 UDP osmc:domain
connmand 341 root 12u IPv6 10665 0t0 UDP osmc:domain
connmand 341 root 13u IPv4 10669 0t0 TCP osmc:domain (LISTEN)
connmand 341 root 14u IPv6 10673 0t0 TCP osmc:domain (LISTEN)
connmand 341 root 17u IPv4 9648 0t0 UDP osmc:46952->dns.google:domain
connmand 341 root 18u IPv4 9650 0t0 UDP osmc:55436->dns.google:domain
connmand 341 root 19u IPv4 13338 0t0 UDP osmc:56423->dns.google:domain

Unfortunately I do not know how this looked before the update. Could it be the case that “osmc:domain” is bound to the port and therefore my pi-hole does not start anymore? Can this be deactivated to use port 53 for pi-hole?

Thanks a lot.
Tombar

fixed it, I hope I did it right. Until now it seems to work.

sudo nano /usr/bin/start-network

changed:

else
if echo “$dnsproxy” | grep -iqw no; then
exec /usr/sbin/connmand -n --nodnsproxy --config=/etc/connman.conf
else
exec /usr/sbin/connmand -n --config=/etc/connman.conf
fi
fi

to:

else
if echo “$dnsproxy” | grep -iqw no; then
exec /usr/sbin/connmand -n --nodnsproxy --config=/etc/connman.conf
else
exec /usr/sbin/connmand -n --config=/etc/connman.conf --nodnsproxy
fi
fi

within the else if added “–nodnsproxy”.

You should change this properly in /etc/osmc preferences, otherwise it will be overwritten by updates.

Hi Sam,

ok, can you please let me know which file exactly I have to modify and what to add.

Thanks.

It’s under /etc/connman.prefs

thanks a lot Sam. Yes this is a better setting than the one I initially changed and it works perfectly for my use case.