Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-16 Thread Simon Kelley
This is really the function of the dnsmasq.conf.example file that's ditsributed with the source code for dnsmasq. Unfortunately that has become rather out-of-date. It could do with a major overhaul. Simon. On 14/03/2023 07:55, Olivier wrote: Hello, Could it be possible to add an example

Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-14 Thread Olivier
Hello, Could it be possible to add an example in interface-name section of dnsmasq.conf man page as IMHO, current content is not very easy to understand. Best regards ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk

Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-13 Thread 0zl
Thank you Simon for the quick reply, I did indeed miss `interface-name` when skimming through the manual page and from the looks of it other users on this thread did too. My suggestion is to have interface-name and dynamic-host mention each other in the manual page and to modify the error

Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-13 Thread Simon Kelley
On 13/03/2023 17:01, Simon Kelley wrote: Thanks for the bug report, it's definitely not noise. The history of line 363 is interesting. When the dynamic-host option was added, it looked like if (netmask.s_addr == 0x) and stayed like that until October 2022 when it got changed to the

Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-13 Thread Simon Kelley
Thanks for the bug report, it's definitely not noise. The history of line 363 is interesting. When the dynamic-host option was added, it looked like if (netmask.s_addr == 0x) and stayed like that until October 2022 when it got changed to the current version if (netmask.s_addr ==

Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-13 Thread Eduardo Soares via Dnsmasq-discuss
Hi 0zl and everyone, I’m writing to add some more information about this issue and my personal use case that falls on the same problem. I have being using dnsmasq for a couple of years now, with Pi-Hole project. In the last year I started using tailscale as a VPN to connect directly to some

Re: [Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-12 Thread 0zl
Well, it seems like dnsmasq just ignores addresses with /32s. I see in src/network.c for some reason if an interface has 255.255.255.255 it just skips it (line 363)? This might possibly the cause for the issue, I'm not sure if this is intentional or some sort of bug. Thanks again and sorry

[Dnsmasq-discuss] Method to get Dnsmasq serve address of a host from interface address

2023-03-12 Thread 0zl
Hi everyone, Previously on Debian Stable, I was using dynamic-host as a weird hack to get Dnsmasq to serve my PPPOE interface's IP address however this no longer seems to work with the Dnsmasq supplied in Debian Testing. It was OK to just specify 0.0.0.0 as my ISP would allocate for me a /32