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 am trying to set up a DNS server on Ubuntu 11.04. The main reason I want to have this DNS server is so I can create a server specifically for testing before making the code live. Creating this DNS server would allow the code to be run on this test server on those computers in our lab that have changed their resolv.conf file. I have a lot of direct links in the code, so this would make things easier. I have gone through the documentation and I believe I have set up the zone correctly, but I think I am not setting the file correctly. (I am using my own website here, not this is what I have: Also, There exists a (again, insert a website in place of, but I am not sure there exists a like the documentation.

@ IN SOA (

@ IN NS IN A (the ip address)

Thanks in advance!

share|improve this question

The is just the DNS way of expressing the email address, it's not a machine name.

You can use the dig utility to check out what your DNS server is telling the world, something like "dig -t a @" (insert your DNS server's IP address instead of should return your server's IP address.

If what you are doing is masking an existing domain (I'm guessing here) you have to make sure that the machines you are testing from have only your test-DNS-server in resolv.conf. Also make sure their DNS caches are cleared before testing, or you may have (real) information that the machines looked up before you changed resolv.conf, masking your test addresses.

Most lookup errors have to do with either syntax errors in the configuration files, timing (TTL and negative TTL) or missing trailing dots (giving you interesting stuff like :). Check and double-check your logfiles.

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.