<div dir="ltr">The default configuration of dnsmasq is to act as a caching proxy server (this behavior of dnsmasq has existed before dhcp support). There are a few reasons the proxying could fail, chief among them being firewall rules. If that isn't the problem, increasing the logging detail may give further clues.<div><br></div><div>If you want to use dnsmasq only as a DHCP server and not a DNS cache, then configuring dhcp-option 6 is the right approach. Note that in this case you won't be able to look up computers by their dhcp hostname.</div><div><br></div><div>A quick summary of nameserver settings:</div><div><br></div><div>Lookups from other software on the dnsmasq server: uses /etc/resolv.conf</div><div>Lookups from dnsmasq (proxy on behalf of clients): defaults to using /etc/resolv.conf, can be overridden via --server and/or --resolv-file options</div><div>option "DNS server" sent to DHCP clients: defaults to the IP address of the dnsmasq server that's in the same block as the address given out, can be overridden with --dhcp-option 6</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 6, 2017 at 1:43 AM, Anoop Ravi <span dir="ltr"><<a href="mailto:anoopravik@gmail.com" target="_blank">anoopravik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Richard,<br>
As you said, I was under an impression that dnsmasq will provide all the nameserver entries in resolv.conf to the clients. Thank you for correcting me.<br>
<br>
But, my clients are not resoving the names with this configuration. It is getting correct domain name and server ip as dns server. If I manually add resolv.conf entries into dnsmasq.conf using dhcp-option 6, then it will start resolving. I can see clients getting nameserver ip at this time.<br>
<br>
What could be the reason for this behaviour?<br>
<br>
Thanks<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.<wbr>uk/mailman/listinfo/dnsmasq-<wbr>discuss</a><br>
</div></div></blockquote></div><br></div>