[Dnsmasq-discuss] Use special address 0.0.0.0 for DNS

Simon Kelley simon at thekelleys.org.uk
Wed Jun 16 09:03:57 UTC 2021


On 16/06/2021 09:10, Alkis Georgopoulos wrote:
> Hi, from the dnsmasq man page:
> 
>> The special address 0.0.0.0 is taken to mean
>> "the address of the machine running dnsmasq"
> 
> This is for DHCP.
> Can I do the same for DNS queries, in some way?
> So that I could map "webserver" to the dnsmasq IP,
> and DNS clients would be able to bookmark and use http://webserver,
> even if the dnsmasq IP is dynamic.

Not using 0.0.0.0, this functionality is provided a different way, see

--interface-name

in the man page. That should do what you want nicely.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list