Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a network of 2 computers connected to a switch without a DHCP server. We have manually set set each of out IP addresses to and and everything works fine.

However we are using a 3rd party program (ROS to be exact), which can establish a connection using our manual IP addresses provided to it. However due to the way ROS works, most communications are done to the other computer's hostname, i.e. not the IP address, the actual name. Which obviously won't work.

We can't change the way ROS works, so how can we configure ubuntu to resolve the hostnames?

share|improve this question
up vote 4 down vote accepted

DHCP does not do hostname resolution; it just offers a method for automatic registration on a locally running DNS server.

Your choices are:

  • mDNS (avahi-daemon + nss_mdns) – names are always in the form name.local; used natively in Mac OS X and available for Windows; uses multicast.

  • NBNS (Samba nmbd + nss_wins) – used by Windows and compatible with Mac OS X; uses broadcast packets.

  • Edit /etc/hosts on each computer: computerone

share|improve this answer
Editing /etc/hosts worked. Thanks! – Hannesh Sep 23 '11 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.