Hacker News new | ask | show | jobs
by ahyattdev 2247 days ago
You can assign them static IPs in DHCP, then run your own DNS server that returns local IPs for those hosts.

Or bridge those VMs on your macbook so it's a flat network, then use Avahi for mDNS so they all have .locals.

1 comments

Running your own DNS is the best option, I use dnsmasq, which functions as both a DHCP and DNS server. Any DHCP requests from the client also contains a hostname, which dnsmasq then stores in its DNS table. So if your hostname is `macbook-air`, dnsmasq will resolve that to the DHCP IP address assignment.