[Dnsmasq-discuss] using only DHCP and propagating upstream nameservers
Ondřej Grover
ondrej.grover at gmail.com
Sat Feb 16 10:35:11 GMT 2013
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).
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.
Kind regards,
Ondrej Grover
On Sat, Feb 16, 2013 at 11:25 AM, Shantanu Gadgil
<shantanugadgil at yahoo.com>wrote:
>
> --- On Sat, 2/16/13, Ondřej Grover <ondrej.grover at gmail.com> wrote:
>
> From: Ondřej Grover <ondrej.grover at gmail.com>
> Subject: [Dnsmasq-discuss] using only DHCP and propagating upstream
> nameservers
> To: dnsmasq-discuss at lists.thekelleys.org.uk
> Date: Saturday, February 16, 2013, 1:24 PM
>
> Hello,
>
> I'd like to use dnsmasq only as a DHCP server, so I set port=0.
> 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.
>
>
> My goal is to propagate the nameservers in /etc/resolv.conf on the dnsmasq
> server to the other downstream servers.
>
> 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.
>
>
> Kind regards,
>
> Ondrej Grover
>
>
> >>> Shantanu >>>
>
> Hi Ondřej,
> You should check out the 'dhcp-option' directive. Option value '6'.
>
> Something like:
> dhcp-option=6,<ip_of_upstream_dns1>,ip_of_upstream_dns2>
>
> Instead of '6', you can use the phrase 'dns-server' as well:
>
> dhcp-option=dns-server,<ip_of_upstream_dns1>,ip_of_upstream_dns2>
>
> If this option is not specified, then the IP of the dnsmasq server is
> handed out to the dhcp client.
>
> Regards,
> Shantanu
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130216/58dadfa7/attachment.html>
More information about the Dnsmasq-discuss
mailing list