Hi all,
Here's a problem I've been considering for a while: at home, I run a Linux box at a few different locations acting as a DHCP / DNS / Samba etc server. All these sites are linked by VPNs, so any machine can see any other. So far so good.
I have dynamic DNS updates set up using dhcpd and bind, such that at each location, a machine grabbing a DHCP address should end up registered with its local DNS server as {hostname}.internal.mydomain.
My problem is how to deal with laptops moving between sites: the same machine might be in Cambridge one day, and Kent the next, on two different subnets.
One option would be to have {hostname}.{site}.internal.mydomain, at which point each DNS server just needs to serve the master zone for its site, and slave the other sites. However, this: a) results in even longer names, and b) means to retain any sanity, I need to add each of the sites to the list of search domains.
Is there a better way of doing this? Ideally I want a "shared zone" in DNS, where if a server doesn't find a local record matching a name, it queries the other servers to see if they have one. But I'm pretty sure this isn't possible (if nothing else, you'd need to avoid infinite recursion).
I guess another way would be to have a single master DNS server to which all the DHCP servers fire updates, then slave zones everywhere else...
Any thoughts?
Cheers,
Rob