[Dnsmasq-discuss] using dnsmasq as a "dns router"
Simon Kelley
simon at thekelleys.org.uk
Tue May 28 14:59:11 BST 2013
On 24/05/13 09:24, Michael Surette wrote:
> I would like to use dnsmasq as a caching dns server which forwards
> requests to the dyndns dns servers, which do content filtering, except
> for local queries, which should go to the dhcp supplied dns server.
>
> Since my laptop can be connected to any number of wireless networks, the
> dhcp supplied dns server varies.
>
> Is there a virtual name for the dhcp supplied dns server or some other
> way to get its address?
>
This (from the manpage) might help:
"The special server address '#' means, "use the standard servers",
so --server=/google.com/1.2.3.4 --server=/www.google.com/# will
send queries for *.google.com to 1.2.3.4, except *www.google.com
which will be forwarded as usual."
but I think you may have a bigger problem which requires you to
dynamically re-write the dnsmasq configuration, if the definition of a
"local query" varies depending on which network you're connected to.
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list