Updated to V5 and dnsmasq config not being applied

Everything was working correctly on the previous version. Updated to version 5 and the dnsmasq stop loading on of the configs

Expected Behaviour:

Load the config

Actual Behaviour:

Not loading the config

Config in question:

dhcp-option=tag:vodafone,option:dns-server,192.168.1.1
dhcp-host=D0:6E:DE:E6:5D:02,set:vodafone,box

Debug Token:

_https://tricorder.pi-hole.net/rjvrm0sg96_

What is the output of the following command from the Pi terminal:

sudo grep -v '#\|^$' -R /etc/dnsmasq.*

/etc/dnsmasq.conf:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.conf.dpkg-dist:dhcp-mac=set:client_is_a_pi,B8:27:EB:*:*:*
/etc/dnsmasq.conf.dpkg-dist:dhcp-reply-delay=tag:client_is_a_pi,2
/etc/dnsmasq.conf.old:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.d/03-pihole-vodafone.conf:dhcp-option=tag:vodafone,option:dns-server,192.168.1.1
/etc/dnsmasq.d/03-pihole-vodafone.conf:dhcp-host=D0:6E:DE:E6:5D:02,set:vodafone,box
/etc/dnsmasq.d/04-pihole-static-dhcp.conf:dhcp-host=D0:6E:DE:E6:5D:02,192.168.1.2,box
/etc/dnsmasq.d/01-pihole.conf:addn-hosts=/etc/pihole/local.list
/etc/dnsmasq.d/01-pihole.conf:addn-hosts=/etc/pihole/custom.list
/etc/dnsmasq.d/01-pihole.conf:localise-queries
/etc/dnsmasq.d/01-pihole.conf:no-resolv
/etc/dnsmasq.d/01-pihole.conf:cache-size=10000
/etc/dnsmasq.d/01-pihole.conf:log-queries
/etc/dnsmasq.d/01-pihole.conf:log-facility=/var/log/pihole.log
/etc/dnsmasq.d/01-pihole.conf:local-ttl=2
/etc/dnsmasq.d/01-pihole.conf:log-async
/etc/dnsmasq.d/01-pihole.conf:server=1.1.1.1
/etc/dnsmasq.d/01-pihole.conf:server=1.0.0.1
/etc/dnsmasq.d/01-pihole.conf:interface=eth0
/etc/dnsmasq.d/01-pihole.conf:server=/use-application-dns.net/
/etc/dnsmasq.d/01-pihole.conf:dhcp-name-match=set:hostname-ignore,wpad
/etc/dnsmasq.d/01-pihole.conf:dhcp-name-match=set:hostname-ignore,localhost
/etc/dnsmasq.d/01-pihole.conf:dhcp-ignore-names=tag:hostname-ignore
/etc/dnsmasq.d/02-pihole-dhcp.conf:dhcp-authoritative
/etc/dnsmasq.d/02-pihole-dhcp.conf:dhcp-range=192.168.1.64,192.168.1.253,24h
/etc/dnsmasq.d/02-pihole-dhcp.conf:dhcp-option=option:router,192.168.1.1
/etc/dnsmasq.d/02-pihole-dhcp.conf:dhcp-leasefile=/etc/pihole/dhcp.leases
/etc/dnsmasq.d/02-pihole-dhcp.conf:domain=lan

Is the duplicate dhcp-host lines for the same MAC address intentional?

Nope. It was a copy past and by mistake I duplicate the line.

I switch from the top to the bottom of the file and left the line there.

What is the output of this command (after you have fixed that)?

pihole-FTL dnsmasq-test

dnsmasq: syntax check OK.

My last answer was incorrect
One is to set a fix ip and the other is to set a different dns server

Also run

sudo pihole-FTL test

dnsmasq: failed to bind DHCP server socket: Address already in use

What is the output of this command:

sudo netstat -nltup | grep 'Proto\|:53 \|:5053 \|:5353 \|:5335 \|:8953 \|:67 \|:80 \|:471'

sudo netstat -nltup | grep 'Proto\|:53 \|:5053 \|:5353 \|:5335 \|:8953 \|:67 \|:80 \|:471'
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:4711          0.0.0.0:*               LISTEN      5725/pihole-FTL
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      441/lighttpd
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      5725/pihole-FTL
tcp6       0      0 ::1:4711                :::*                    LISTEN      5725/pihole-FTL
tcp6       0      0 :::80                   :::*                    LISTEN      441/lighttpd
tcp6       0      0 :::53                   :::*                    LISTEN      5725/pihole-FTL
udp        0      0 0.0.0.0:53              0.0.0.0:*                           5725/pihole-FTL
udp        0      0 0.0.0.0:67              0.0.0.0:*                           5725/pihole-FTL
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           336/avahi-daemon: r
udp6       0      0 :::53                   :::*                                5725/pihole-FTL
udp6       0      0 :::5353                 :::*                                336/avahi-daemon: r

What indication do you have that the config is not being loaded? There is no error shown on a syntax check, and your debug log shows that Pi-hole is running nromally.

Because before the update the device worked fine and didn't shown up on the device list on the pihole admin interface as it use the router dns.

That is why I'm saying it's not loading or something is missing for this new version.

If it's on the same network segment as the Pi-hole server, then it's going to show up on the Admin Network interface. What color is the background of the entry?

Green. And it only start getting requests after update. Before it was gray

And if you remove the static IP mapping or the 03 override? Duplicating the dhcp-host line in two different configuration files will cause unknown behavior. The last loaded config, 04 will be what is applied in case of conflict.

Set the static IP, tags and alias in one line in one file. Don't have it in two files.

I will do it. But the strange thing is that it working really well before update

Need to run more tests tomorrow but looks like its working

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.