Access server by host name?

This has to do with Avahi, a Zeroconf implementation which advertises hostnames on the local network.

You can get started with Avahi on your server by installing the daemon:

sudo apt-get install avahi-daemon

From that point, you should be ready to go. Check out the docs in /usr/share/doc/avahi-daemon/ if you have additional trouble.


You have to have a DNS (Domain Name System) server somewhere to handle that name resolution. Some routers have a DNS server coupled with their DHCP server. Check your router and see if it has one and it's disabled. Ubuntu automatically sends the configured host name out to the DHCP server when it requests an IP address, and if the router has an enabled DNS server, it should report that name/IP to the DNS server, also.

Short of that, you can put the name and IP address of your Ubuntu box in the hosts file on the windows machine in c:\WINDOWS\system32\drivers\etc\hosts. Provided your Ubuntu machine's IP address doesn't change (or change often), that might be a simple, long term solution.


You configure nmbd with a netbios name and then you can use that netbios name on the local network without knowing the IP address.

One time, whilst talking to a Windows SysAdmin that I know, I was surprised to be told that when you plug a Windows PC into the network, even if you don't know the new IP of that machine, you can still find it on the network by using it's Windows name.

I thought that this was some kind of crazy magic but it turns out you can achieve the same thing on Linux by installing, configuring and running nmbd. This is part of Samba.

To find out more, check out this link.

It sounds that this is what you are asking about.