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

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=" appears to do nothing. What is this doing, if anything?

It's exactly equivalent to


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


is probably what you need.



> So, perhaps "//" would be the correct syntax? Nope, does not seem
> to work.
> "/#/" 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