Setup Name Servers

  • Share this Post on Digg
  • Share this Post on Twitter
  • Share this Post on Design Float
  • Share this Post on Delicious

Mar 8th, 2009 Web Development 0 Comment

Stumble Setup Name Servers

This is an article I’ve been wanting to write for a long time. I’ve moved some of my more popular sites over to dedicated servers, which means you’re responsible for the maintanence of the server and sites hosted on them.

Setting up name servers in both WHM and Cpanel was one of the hardest things to do, here’s my tips.

Registering the Name Servers

Register Name Servers where you registered your domain at, example Godaddy. I suggest using one IP per name server, i.e.:

  • NS1.yourdomain.com = IP#1
  • NS2.yourdomain.com = IP#2

You may also need to notify your DataCenter to setup Reverse DNS for the IP addresses used above and for your name servers, this can be done via your Host’s Support ticket system.

Name Server Setup

1. Login to WHM as root

2. Click “Edit Setup” or “Basic cPanel/WHM Setup” from the left hand menu.

3. Type: ns1.yourdomain.com in the Primary Nameserver field.

4. Press Assign IP Address

5. Then Press Add an A Entry for this nameserver

6. Type ns2.yourdomain.com in the Secondary Nameserver field.

7. Click Assign IP Address

8. Then Click Add an A Entry for this nameserver

9. Click Manage Nameserver IPs from the left menu in WHM.

10. If you see any nameservers that do not belong to you, remove them now.

11. Click Initial NameServer Setup from the left menu in WHM Run this for the “initial name server setup”

12. Login to SSH to restart bind. (Be sure it restarts, so don’t do this in WHM)

13. Type: service named stop

14. Type: service named start

15. While in SSH do the following to verify installation has gone well.

16. Type: pico /etc/wwwacct.conf
Scroll to the bottom and insure that your name servers are listed like this: NS ns1.yourdomain.com NS2 ns2.yourdomain.com

17. While still in SSH do the following to verify installation has gone correctly.
Type: pico /etc/resolv.conf
It should look like this:

domain yourdomain.com
search yourdomain.com
#nameserver 127.0.0.1
nameserver ip address #1 here
nameserver ip address #2 here

18. Check one more thing in SSH to make sure Name Server Configuration went GOOD.
Type: pico /etc/nameserverips

It should look like this:
ip address 1=ns1.yourdomain.com
ip address 2=ns2.yourdomain.com

No related posts.

Leave a Reply to "Setup Name Servers"

Have an Avatar? - Register one now!
Liked the post? - Subscribe via RSS.

Copyright 2008 - 2012 | Best Blogs Asia