<div dir="ltr">Thank you, this would solve my problem if the nameservers listed in /etc/resolv.conf on the server didn't change, but they do (the server is more like a router, acquires IP and dns info from my ISP via DHCP).<br>
<br>As dnsmasq is able to read /etc/resolv.conf on the server, I was hoping there would be a way for dnsmasq to propagate the nameservers listed there automagicaly to its clients.<br><br>Kind regards,<br><br>Ondrej Grover<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 16, 2013 at 11:25 AM, Shantanu Gadgil <span dir="ltr"><<a href="mailto:shantanugadgil@yahoo.com" target="_blank">shantanugadgil@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top"><br><blockquote>--- On Sat, 2/16/13, Ondřej Grover <<a href="mailto:ondrej.grover@gmail.com" target="_blank">ondrej.grover@gmail.com</a>> wrote:<br>
<br>From: Ondřej Grover <<a href="mailto:ondrej.grover@gmail.com" target="_blank">ondrej.grover@gmail.com</a>><br>Subject: [Dnsmasq-discuss] using only DHCP and propagating upstream nameservers<br>To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Date: Saturday, February 16, 2013, 1:24 PM<br><br>Hello,<br><br>I'd like to use dnsmasq only as a DHCP server, so I set port=0.<br>However, once I acquire an IP via DHCP, the address of the dnsmasq server still ends up in /etc/resolv.conf, so DNS stops working.<br>
<br><br>My goal is to propagate the nameservers in /etc/resolv.conf on the dnsmasq server to the other downstream servers.<br><br>My motivation is to try to forward DNS requests directly to the upstream servers, because I suspect my server with dnasmasq actually isn't performing fast enough.<br>
<br><br>Kind
regards,<br><br>Ondrej Grover<br></blockquote><br>>>> Shantanu >>><br><br>Hi Ondřej,<br>You should check out the 'dhcp-option' directive. Option value '6'.<br><br>Something like:<br>dhcp-option=6,<ip_of_upstream_dns1>,ip_of_upstream_dns2><br>
<br>Instead of '6', you can use the phrase 'dns-server' as well:<br><br>dhcp-option=dns-server,<ip_of_upstream_dns1>,ip_of_upstream_dns2><br><br>If this option is not specified, then the IP of the dnsmasq server is handed out to the dhcp client.<br>
<br>Regards,<br>Shantanu<br></td></tr></tbody></table><br>_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br></blockquote></div><br></div></div>