[Dnsmasq-discuss] [PATCH] Fix --server=/#/...... which was lostin 2.86

Matus UHLAR - fantomas uhlar at fantomas.sk
Tue Aug 9 09:55:56 UTC 2022


>On 08.08.22 15:35, Simon Kelley wrote:
>>Testing, I did find a configuration which is broken:
>>
>>address=/#/1.1.1.1
>>server=/some.domain/#
>>
>>ought to forward queries for some.domain to the default server(s) 
>>read from /etc/resolv.conf (or any other default servers) but it 
>>returns 1.1.1.1 instead.
>>
>>https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=f4b281381853df6b275332d4cd0ec1d150bffa86
>>
>>Fixes this.

On 08.08.22 19:09, Matus UHLAR - fantomas via Dnsmasq-discuss wrote:
>this reminds me of a discussion there the OP seemed to deliberately 
>using the behaviour above:
>
>https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015932.html
>
>IIUC this definitely won't work anymore.

reading it again, the poster in the linked article wanted:

- create a list of domains to forward to DHCP-provided server

- forward requests for all other domains to server provided by server= 
   directive

using configuration like:

server=/google.com/#
server=/#/1.1.1.1

original request from mentioned thread:
https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015924.html


I also see that OP later redefined the problem from:

--address=/#/......

to:

--server=/#/......


https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2022q3/016494.html


but according to the changelog, this patch should fix either.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The only substitute for good manners is fast reflexes.



More information about the Dnsmasq-discuss mailing list