Martin-Éric Racine wrote:
Package: dnsmasq
Version: 2.32-2
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Unless I misunderstod some existing configuration option, there doesn't seem to be any way to make dnsmasq provide
the DNS servers it itself gets to DHCP clients.

Right now, clients receive exactly one search domain and
one DNS server IP (the IP of the dnsmasq host). It would
be desirable to also provide upstream DNS servers IP.

There's a couple of reasons why this isn't, in general, a good idea.

1) The view of the DNS which dnsmasq provides is modified: most obviously by adding the names in /etc/hosts. Having resolution of /etc/hosts names randomly fail becasue the resolver used one of the upstream nameservers directly would be a pain.

2) There's no way to force an update, should the nameservers in use change. If that's not a problem, because they don't change, then what you are asking for is already possble by doing

dhcp-option=6,0.0.0.0,<upstream nameserver1>,<upstream nameserver2>

By explicitly specifying the value for option 6, the default gets overridden, and 0.0.0.0 is replaced with the address of the host running dnsmasq.

Cheers,
Simon.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to