3 ms·
I always thought it made sense to address local VMs with .localhost domains in my hostsfile. Apparently not?
by gant 10y ago
I always thought it made sense to address local VMs with .localhost domains in my hostsfile. Apparently not?
- drostie 10y agoYou can address them with whatever domains you choose; suffixing them with .localhost is no better than suffixing them with .local, .loc, .qwyjibo, or not suffixing them at all: these are merely personal choices you made to give the domains some look and feel, but they aren't intrinsically privileged by the system.
- andreareina 10y agoI've taken to having my VMs support mDNS (specifically avahi on Debian), and I can connect to <hostname>.local without adding an entry to my hosts file or messing with DNS.