<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><blockquote>--- On Sat, 2/16/13, Ondřej Grover <ondrej.grover@gmail.com> wrote:<br><br>From: Ondřej Grover <ondrej.grover@gmail.com><br>Subject: [Dnsmasq-discuss] using only DHCP and propagating upstream nameservers<br>To: dnsmasq-discuss@lists.thekelleys.org.uk<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></table>