mark.a.nicolosi
August 1st, 2008, 04:07 AM
The default install of Ubuntu does something really cool; you can ping the hostname you set from any other computer on the network. No need to edit hosts files or remember IP addresses. Other OSes like Mac OS X does the same thing.
I want my Ubuntu server to do the same thing. Sure, I could set a static IP and edit every machine's /etc/hosts file, but that seems like a lot of work, when Ubuntu could do it automatically.
The only difference that I could think of is Network Manager, but I tried installing it and deleting the network configuration from /etc/network/interfaces, but it didn't work either.
Also, from reading interfaces(5), I learned I could ask the DCHP server to set my hostname. I figured this is what my Ubuntu desktop does and my Mac does, but it didn't work either.
Here's what my interfaces file looks like now:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
hostname bob
Does anyone know how to get similar behavior on the server edition of Ubuntu?
I want my Ubuntu server to do the same thing. Sure, I could set a static IP and edit every machine's /etc/hosts file, but that seems like a lot of work, when Ubuntu could do it automatically.
The only difference that I could think of is Network Manager, but I tried installing it and deleting the network configuration from /etc/network/interfaces, but it didn't work either.
Also, from reading interfaces(5), I learned I could ask the DCHP server to set my hostname. I figured this is what my Ubuntu desktop does and my Mac does, but it didn't work either.
Here's what my interfaces file looks like now:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
hostname bob
Does anyone know how to get similar behavior on the server edition of Ubuntu?