by sigjuice · 5y ago · 0 comments
At home, at any given time I might have around 10 or so Linux or BSD VMs across my laptop, Synology or Raspberry Pi’s. I’d like them to know each other’s names (even if they are not all directly reachable via IP). I really really hate typing or copy/pasting IP addresses.
Then configure DHCPd to use that key to populate the domain with hosts.
Edit: This is roughly how it is configured: https://unix.stackexchange.com/questions/265142/isc-dhcpd-to...
If you use different dns/dhcp tools it might be done differently.
The simpler solution is to connect your DHCP and DNS servers. Dnsmasq has this built in, and is frankly a fantastic piece of software. If you’re sticking with ISC servers, BIND can be configure to allow dynamic DNS updates, and dhcpd can in turn be configured to manage those updates.
`ssh seanlaptop.local` is much better then having to ping broadcast or log into the router :)