Resolving hostnames on a local network and with DHCP
I added four more older headless computers to our local home network with a NAT router working as a DHCP server.
I can't get to resolve the hostnames of the local PCs configured via DHCP.
I actually never could but I ddidn't care before as I used ftp or ssh between computers only occasionally and VOIP phones and network cameras had static IP addresses for that reason.
I got again the option to use static addresses but I was wondering if there was a more elegant around this.
The four headless computers get via DHCP often changing IP addresses.
ssh and nfs can't work at the moment with their hostnames as I get "Unable to resolve hostname". The hostnames is in the "/etc/hosts" file of every PC are obviously not sufficient.
Do I really need a local DNS server installed for the new headless PCs to look up the hostnames?
I got at the moment one FreeBSD box running its own DNS server but locally on the machine as "127.0.0.1". The FreeBSD box itself is again with a dynamic IP address via DHCP ...
Do I need to assign this FreeBSD box a static address and then use this DNS server from the new headless PCs or is there another way, probably by editing a config file only?
Those newly added headless PCs run RedHat. So, if there would be a way to let those see the hostnames of other local PCs, that would be great.