On my local DHCP network I have different PC's that I need to access remotely. Problem is that their IP's change. Sometimes I plug my laptop and netbook into other people's DHCP networks.
My current solution is to update the
/etc/hosts file every time the target IP's change.
/etc/hosts file looks like this:
# <ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost laptop 192.168.1.14 desktop.localdomain desktop 192.168.1.12 netbook.localdomain netbook
Is there a way to bypass all that manual administration?
For example, could my computers broadcast their IPs on the LAN, or something like that? Windows does something like that, which allows you to reference a computer on the network with "\\COMPUTER_NAME"