Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a domain registered through, and I have 2 nameservers for my domain (ns1, Both nameservers are being pointed to my VPS IP address. I can access my VPS fine through IP, but not my domain. I am using webmin 1.6, and have my master zone all setup. Here is the records file:

$TTL 3600 IN  SOA (
            1D )

    ; Name Server
    IN  NS
    IN  NS

    ; Mail Exchanger         IN A        x.x.x.x
www         IN CNAME        x.x.x.x

; Resource Record - veryfy the IP where your mails come from(disable if not needed)
; @ IN TXT      "v=spf1 ip4: -all"

; EOF IN  A   x.x.x.x IN  A   x.x.x.x IN  A   x.x.x.x

x.x.x.x gets replaced with my VPS IP.

If I ping my nameservers, I get unknown host

Can anyone give me ideas about what is going on?

share|improve this question
Updated the tags for the post, as the question isn't specific to Centos or to VPS hosting. – Wing Tang Wong Apr 8 '13 at 23:58

2 Answers 2

The nameservers, as recognized by the Domain Registrars are hosted via your domain registrars.

Ie, you need to have the => IP and => IP on your NS, but you also need to tell your registrar that information as well, through their form/mechanism.

How this works depends on the registrar your domain is registered through.


1) does 'whois' for your domain report your VPS's IP addresses as the officially recognized name servers? Are the and pointing to the IP addresses you have a name server running on?

2) you indicate that you have configured webmin to setup the DNS for your VPS. Have you confirmed that this is actually working? Ie, is the name service being hosted on your VPS instances and if so, are the daemons running?

share|improve this answer
both nameservers are being pointed to the vps IP currently. I am still getting server not found when I enter my domain in the address bar. – David Apr 9 '13 at 16:51
Editing my answer, since comments don't support good formating. – Wing Tang Wong Apr 9 '13 at 20:03

Look into logfile of DNS server if the zone configuration file gets loaded correctly. From the quick view i would say there is a mistake in the config file. BIND config files don't use email address with the @.

So my tip is that "" confuses the parser and zone doesn't get loaded. Correct format is "" because the first dot stands for @ in email address.

If the zone is loaded and ok, I advise use of "dig" for debugging.

share|improve this answer
How do I view the log files? – David Apr 9 '13 at 20:41
by default logs are in /var/log/bind or /var/log/named – Fiisch Apr 9 '13 at 20:49
here is what I am getting with intodns. – David Apr 9 '13 at 21:19
If the IP address listed in that page is the name server, then either bind(or whichever name server you are using) is down, not binding to the public ip address, or there is a firewall rule preventing port 53 from hitting your box. – Wing Tang Wong Apr 10 '13 at 0:04

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.