[Dnsmasq-discuss] Problem with no-resolv and no IP

Donald Muller donmuller22 at outlook.com
Sun Mar 6 03:35:12 UTC 2022


I think you need to enable 

--bind-dynamic
Enable a network mode which is a hybrid between --bind-interfaces and the default. Dnsmasq binds the address of individual interfaces, allowing multiple dnsmasq instances, but if new interfaces or addresses appear, it automatically listens on those (subject to any access-control configuration). This makes dynamically created interfaces work in the same way as the default. Implementing this option requires non-standard networking APIs and it is only available under Linux. On other platforms it falls-back to --bind-interfaces mode.

> -----Original Message-----
> From: Dnsmasq-discuss <dnsmasq-discuss-bounces at lists.thekelleys.org.uk>
> On Behalf Of Alkis Georgopoulos
> Sent: Saturday, March 5, 2022 4:46 PM
> To: dnsmasq-discuss at lists.thekelleys.org.uk
> Subject: [Dnsmasq-discuss] Problem with no-resolv and no IP
> 
> Hi, on Ubuntu 22.04 and dnsmasq 2.86-1.1:
> 
> 1) Use the following dnsmasq.conf:
> no-resolv
> server=8.8.8.8
> 2) Ifdown the network so that there's no local IP
> 3) (Re)start dnsmasq
> 4) Ifup the network, let's say local IP=10.0.0.1 now
> 
> At that point:
> 5) `host google.com 10.0.0.1` fails with connection timed out,
> 6) `host google.com 127.0.0.1` works.
> 
> In other words, when dnsmasq is started when there's no local IP, AND
> no-resolv is set, then dnsmasq doesn't reply to the local IPs that are
> assigned later on.
> 
> Is this a bug? Am I doing something wrong?
> Please Cc me as I'm not subscribed to the list.
> 
> Thank you,
> Alkis Georgopoulos
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list