Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I've setup two Amazon EC2 instances, both running Ubuntu Server. One is configured as a DNS server running bind9, which will be used to allow EC2 instances to communicate with each other based on hostname rather than IP, since their private IPs may change.

I think I have the DNS server setup correctly. I want to use the second EC2 instance to test the DNS server.

Using Webmin, I've added the DNS server's private IP to the client's DNS Servers list and added the domain to the Search Domains list. I did have to edit /etc/dhcp3/dhclint.conf to make my changes stick.

After reboot, I expected I'd be able to ping or nslookup the DNS server from the test client, but it can't seem to find the server. Is there something I'm missing?

What's required to configure an Ubuntu client to use a DNS server?

I just want to make sure I'm not missing something before I assume the server's the problem.

share|improve this question
alvosu was correct, /etc/resolv.conf is all that's required. I was IP-restricting access to the EC2 instances using the Security Groups, which allowed my local machine to communicate with them, but prevented them from communicating with each other. – ks78 Feb 7 '11 at 19:19
up vote 1 down vote accepted

dhclient update /etc/resolv.conf. Solution.

share|improve this answer

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.