Seems like what you want to use is DHCP and BIND. Use nsswitch.conf toconfigure where you look first.