Connman(d) DNS and port 53

I have been trying to stop connman’s dnsproxy(port 53) with no luck, followed some guides her and was working remote on it, after reload of systemd and restart of connmand even a remote reboot there OSMC/rpi2 box is not responding… so my question is how do i stop connman in using port 53/dns for its DNS proxy…

Add -nodnsproxy and then specify desired DNS servers in /etc/resolv.conf

S

Hi sam thx :wink: but where do i add “-nodnsproxy”?? in the init script?

Yes, in /lib/system/systemd/connman.service (exact path may be slightly different)

had to edit file /usr/bin/start-network and on almost the last line in the script like this
exec /usr/sbin/connmand -n --config=/etc/connman.conf --nodnsproxy

it did not pikeup the changes i set in /lib/systemd/system/connman.service

ExecStart = /usr/bin/start-network --nodnsproxy 
(or -nodnsproxy)

but working now…

hey harry, I’m fighting a DNS issue myself and I’m wondering if it may relate to yours. what was the reason you wanted to stop the connman dns proxy in the first place?

Im using dnsmasq(my own setup dns proxy) and connman occupied port 53…

I specify directly my DNS inside /etc/resov.conf then

sudo chattr +i /etc/resolv.conf

The file will be not modify in any manner and survive at reboot.
To check:

sudo apt-get install dnsutils
nslookup osmc.tv

this is just for refs: There have been some changes in osmc rc3

no need for edit /usr/bin/start-network, there is a new file
“/etc/connman.prefs” here this controls the dnsproxy now.

.

3 Likes

I got bitten by the latest release December 2023 - OSMC's December update is here - OSMC

The file is now here: /etc/osmc/prefs.d/connman and the default is dnsproxy=yes.

It has indeed moved. The default changed for a while, but with the path change, it needs to be reconfigured again.