[Dnsmasq-discuss] using only DHCP and propagating upstream nameservers

Ondřej Grover ondrej.grover at gmail.com
Sun Feb 17 17:35:25 GMT 2013


After considering the benefit of dnsmasq making sure that the right
nameservers are used, I'm sold.
For debugging (I'm not sure if dnsmasq is the bottleneck for DNS queries),
what option should I enable to generate as low overhead as possible and
direct the DNS clients' requests directly to upstream nameservers?

However, I consider cache=0  -> IP dnsmasq server in client resolv.conf a
bug as it stops DNS working completely.

Regards,

Ondrej Grover


On Sun, Feb 17, 2013 at 5:19 PM, Simon Kelley <simon at thekelleys.org.uk>wrote:

> On 16/02/13 12:03, Chris Wilson wrote:
>
>> Hi Ondrej,
>>
>> On Sat, 16 Feb 2013, Ondřej Grover wrote:
>>
>>  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.
>>>
>>
>> If the DNS servers listed there change, there's no way to inform the
>> DHCP clients of that. If they continue to use the old servers and those
>> servers stop working, the clients will fail.
>>
>> Just use dnsmasq to proxy to the DNS servers already. dnsmasq will
>> automatically start forwarding queries to new servers when the list
>> changes. And it will cache queries for you, so it will be faster.
>>
>>
>>
> I'd echo Chris's observation here: dnsmasq's orignal raison d'etre was to
> allow the upstream nameserver to change without needing to undergo the
> problematic process of propogating that to all the clients on the local
> network.
>
> It probably makes sense that dnsmasq-dhcp should not advertise itself by
> default as the DNS server of the dnsmasq-dns is disabled with port=0, (or
> port= anything other than 53, for that matter.)
>
> Cheers,
>
> Simon.
>
> ______________________________**_________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.**thekelleys.org.uk<Dnsmasq-discuss at lists.thekelleys.org.uk>
> http://lists.thekelleys.org.**uk/mailman/listinfo/dnsmasq-**discuss<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/20130217/7c0a1d11/attachment.html>


More information about the Dnsmasq-discuss mailing list