Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: