[Dnsmasq-discuss] Use of "server=8.8.8.8" not the same as "server=/#/8.8.8.8" ?

Simon Kelley simon at thekelleys.org.uk
Fri Feb 21 11:20:41 UTC 2014


On 21/02/14 11:07, Jesse Molina wrote:
> Greetings
>
> I was recently configuring an OpenWRT router, which uses Dnsmasq version
> 2.62.
>
> I expected that when I configured a forwarder via the "server="
> configuration option, without a domain (the man page says domains are
> optional), it would behave like a wildcard and override the resolv-file,
> which has a different set of DNS servers.
>
> The man page says "If one or more optional domains are given, that
> server is used only for those domains and they are queried only using
> the specified server."
>
> "server=8.8.8.8" appears to do nothing. What is this doing, if anything?

It's exactly equivalent to

nameserver 8.8.8.8

in the resolv-file, and both are read, so if you have a different server 
in the resolv file, both will go on the list.

If you don't want to use the servers in /etc/resolv.conf, then

no-resolv
server=8.8.8.8

is probably what you need.


Cheers,

Simon.


>
> So, perhaps "//8.8.8.8" would be the correct syntax? Nope, does not seem
> to work.
>
> "/#/8.8.8.8" works as expected and seems to be the correct answer.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>




More information about the Dnsmasq-discuss mailing list