Ubuntu Tip: Hostnames

Published on . Ubuntu Hostname

Ubuntu Hostname
Since Ubuntu runs Avahi by default, every regular Ubuntu PC broadcasts its hostname. As a result you can use “host.local” as the hostname to connect to, where host is the name of the box running Ubuntu. It will automagically find it, even if you don’t know the IP address.

Handy for SSH, webservers, shared disks, or even just a simple ping.

David Verhasselt

Senior full-stack engineer with 5 years of experience building web applications for clients all over the world.

Interested in working together?

Find out what I can do for you or get in touch!

Like this? Sign up to get regular updates