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

What I want to do is to make my domain name resolve using my own nameservers.

I got 3 VPSes, all running debian and a domain name,

2 VPS are nameservers and 1 is a webserver.

At my registrar i've put my domain name to DNS only and changed the nameservers to my two own nameservers.

On my first nameserver I've installed Bind9 and configured as follows.


zone"" {
type master;
file "/etc/bind/zones/";

zone "" {
type master;
file "/etc/bind/zones/";

/etc/bind/zones/ IN SOA (
38400) IN NS IN NS
www           IN A //my third VPS which is a webserver
ns3           IN A  x.x.x.x //this nameserver ip, should it be localhost?
ns4           IN A  x.x.x.x //my 2nd VPS nameserver ip
@             IN A


@ IN SOA (


When i run nslookup the response is

Server: x.x.x.x //which points to the neighbourhood of my VPS provider
Address: x.x.x.x#53

Non-authoritative answer:
Address: x.x.x.x //this is the actual ip of my VPS webserver

So it seems to be working? I can't resolve via my webbrowser, am I just waiting for propagation or is there somethings missing?

Thanks in advance for any help or insightful advice.

share|improve this question
What's the domain? Can't really check for DNS brokenness if I don't know what to look for :) – Dennis Kaarsemaker Nov 11 '12 at 18:26 is the domain :) – Thuy Nov 11 '12 at 18:43
I edited my post to make things a bit clearer. – Thuy Nov 11 '12 at 18:48
You should probably delete the whole stuff. Most VPS providers do not delegate you this tree so it's useless. – bortzmeyer Nov 12 '12 at 8:43
up vote 2 down vote accepted

So ns3 is working correctly, but ns4 is not responding. You also forgot to add an A record for the domain. Something like:

@           IN A  x.x.x.x //my third VPS which is a webserver

The @ means: the domain, not a subdomain of it.

share|improve this answer
So basiclly i need to add @ IN A x.x.x.x so I have a www IN A and @ IN A record? Also fixing the ns4 server, gimme a sec :) – Thuy Nov 11 '12 at 19:04
Okay I edited my inital post to reflect my change with the @ record. I copied my settings to ns4, restarted bind and the nslookup gives me the same result as ns3 now. Does things seem correct now? – Thuy Nov 11 '12 at 19:22
All looks ok now :) – Dennis Kaarsemaker Nov 11 '12 at 19:48
Awesome! Thanks a lot for the help and that webpage it looks rather helpful, it works perfectly now :) – Thuy Nov 11 '12 at 20:10

Also, for a list of online tools to test your DNS zone, see

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.