2
This is all on a LAN:
- I have a bunch of Linux machines (I'm calling these endpoints) which receive their IPs from a DHCP server that I don't control.
- I don't control our internal DNS
- However, I do control an Ubuntu server with a static IP and known name: ubuntu.domain.com
I want to be able to access these machines by their hostnames, or hostname.ubuntu.domain.com.
Either I need to notify our DNS server about these hostnames, figure out what name resolution services are available already (pinging Windows or Linux hostnames both resolve to an opendns IP which is wrong), configure a service like dnsmasq, or use a dynamic DNS website (not ideal for this mostly closed network)
With dnsmasq it looks like I need to set each machine to obtain an IP from ubuntu.domain.com. I don't want to do this. I must maintain the current DHCP situation. Someone would be mad if our DHCP requests went through my own machine.
Is it possible to forward DHCP requests from dnsmasq to my default DHCP provider?
Somehow each machine needs to notify ubuntu.domain.com of its (hostname, IP) pair.
I want to avoid modifying anything but the named endpoints to use to ubuntu.domain.com as a DNS source, which is why the hostname.ubuntu.domain.com scheme seems good. I don't know if this is even possible, though.
TLDR: How do I resolve Linux hostnames easily?
Thank you. If I want a lookup from a machine which cannot have its network settings modified, I suppose I can use nslookup hostname ubuntu.domain.com. – Cat – 2011-12-16T00:32:48.673
@Cat Yeah, thats it, I can't see a way you can get this to work automatically without having root access. – Paul – 2011-12-16T00:52:56.487