[Dnsmasq-discuss] [PATCH] --local is broken

Dominik Derigs dl6er at dl6er.de
Tue Oct 5 18:52:03 UTC 2021


Hey Simon,

Since commit "Fix --address=/#/...... which was lost in 2.86"
(26bbf5a314d833beaf0f147d24409969f05f3dba) --local being a
synonym for --server is broken as --local became a synonym for --
address.

The attached patch fixes this.

This was reported on the Pi-hole forums:

> I have local=/fritz.box/192.168.0.1 in my /etc/dnsmasq.d/02-
> localdns.conf config file. This worked fine until upgrading
> pihole last night. Now all queries to FQDNs such as google.com
> get responded with google.com.fritz.box and ip address
> 192.186.0.1.
> 
> Changing the line to server=/fritz.box/192.168.0.1 restores the
> previous handling. However, according to the dnsmasq manpage "-
> -local is a synonym for --server to make configuration files
> clearer in this case."

Best,
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-local-should-behave-as-server-not-as-address-accordi.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20211005/b7981dc7/attachment.bin>


More information about the Dnsmasq-discuss mailing list