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'm having trouble setting up name servers. I have a domain name. I have a VPS which is running CentOS with Bind. I have registered the domain using GoDaddy. I want to setup my own name servers, i.e. and

What settings do I need to use to do that in Godaddy , as well as my VPS. I have WHM installed on my VPS so configuration should not be too difficult.

share|improve this question

you have to change your godaddy domain on the web interface specifying your VPS as ns1 and you have to look up for a good ns2 service somewhere for example

on your VPS linux you have to write the zone file looks like this:

$TTL 86400
@     IN     SOA (
                    2001062501 ; serial
                    21600      ; refresh after 6 hours
                    3600       ; retry after 1 hour
                    604800     ; expire after 1 week
                    86400 )    ; minimum TTL of 1 day

      IN     NS
      IN     NS

      IN     MX     10
      IN     MX     20

             IN     A

server1      IN     A
server2      IN     A
dns1         IN     A
dns2         IN     A

ftp          IN     CNAME   server1
mail         IN     CNAME   server1
mail2        IN     CNAME   server2
www          IN     CNAME   server2
share|improve this answer

I would recommend that you understand how DNS works first. It is quite a bind to configure and get it all up and running. You will need to familiarise yourself with the different kinds of zones and records that you will need.

Getting GoDaddy to use your authoritative servers is probably the easiest step involved. You will just need to login to GoDaddy and change your DNS settings. It may take up to 24 hours for the changes to propagate.

share|improve this answer

I would strongly suggest you pick up an O'Reilly book or something similar before trying to administrate your own DNS. With a few hours of research, you'll be a lot better prepared to setup a simple bind server that'll run forever and not be a constant source of support issues.

I'm assuming that WHM refers to the cPanel webhost manager stuff? I've not messed with cPanel in a good while, but if memory servers, it was a lot more complicated than bind.

share|improve this answer

Your Answer


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