[Dnsmasq-discuss] server-side dynamic resolving

Travis Hansen travisghansen at gmail.com
Mon Aug 13 15:57:51 BST 2012


> Bind doesn't do it, the client does. CNAME works like this:
>
> client -> nsswitch -> server: what's the address of 15z.foo.bar?
> client <- nsswitch <- server: 15z.foo.bar is a CNAME to 15z.local.
> client -> nsswitch -> mdns: what's the address of 15z.local?
> client <- nsswitch <- mdns: 15z.local is at 1.2.3.4
>
> This assumes that nsswitch on the clients is configured to use mdns as well
> as dns, which on my system (Ubuntu 11.10) it is.

Awesome!  I believe that will work.  Now I just need to figure out how
to get bind/dnsmasq to play nicely together on the same machine :)  If
you've got tips let me konw.  In any case I'll report back.

Just so I understand the first step mentioned above for my particular
setup.  Would it be like this?

client -> nsswitch -> server dnsmasq: what's the address of
15z.foo.bar -> server bind: what's the address of 15z.foo.bar

> Do you have to use static leases? Can't you just let dnsmasq allocate the
> same IP to the client based on its hostname/client ID, whatever
> connection/MAC it's using?

I've read about problems with that.  If both are active for whatever
reason then that sounds like a collision waiting to happen...

http://serverfault.com/questions/81019/best-practices-to-set-up-laptop-with-wireless-and-wired-interface-nic-over-dhcp

>
>
> Cheers, Chris.
> --
> Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838
> Future Business, Cam City FC, Milton Rd, Cambridge, CB4 1UY, UK
>
> Aptivate is a not-for-profit company registered in England and Wales
> with company number 04980791.
>



-- 
Travis Hansen
travisghansen at gmail.com
801.367.2715



More information about the Dnsmasq-discuss mailing list