Web Hosting Discussion Forum

Web Hosting Forum    

Unltimate Web Hosting Discussion Resource


Go Back   Web Hosting Discussion Forum > Web Hosting Business Discussion Forum > Technical and Security Issues Discussion Forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

   

» Advertisement


AccuWebHosting.com



Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 31st, 2007, 04:22 AM
Administrator
 
Join Date: Aug 2007
Posts: 685
Default Setting up Name Servers on CPANEL / WHM

I found this interesting article about name server setup on
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
.

Setting up nameservers in WHM/Cpanel

1. Log into WHM

2. Goto Server Setup =>> Edit Setup

Make sure your primary IP is correct under Main Shared
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.

To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
IP

Make sure your Hostname is correct under Hostname (server1.xyz.com)

Under Primary Nameserver enter your primary nameserver (ns1.xyz.com), click on Assign Ip Address, then click on Add A entry for this nameserver

Under
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
Nameserver enter your secondary nameserver (ns2.xyz.com), click on Assign Ip Address, then click on Add A entry for this nameserver

Note: You can add a third and fourth name server if you wish, however this is not necessary. All name servers will be automatically assigned to any accounts you setup later. You will have to manually disable extra nameservers from each account.

Scroll to the bottom and click Save.


Goto DNS Functions =>> Edit a DNS Zone

Choose the primary domain for the server and click Edit

The beginning of your Zone File should look something like this:


-------------------------------------------

; Zone File for ip-2-ip.net


$TTL 14400


@ 14440 IN SOA ns1.xyz.com. admin.xyz.com

-------------------------------------------


In SOA add your primary ns (ns1.xyz.com.) and contact email (admin.xyz.com.). Put a period at the end of your nameserver, and use a period in place of @ in your contact email and add a period at the end too.)


In most cases you should have the following Record Types:

-------------------------------------------

xyz.com. 14440 IN NS ns1.xyz.com.

xyz.com. 14440 IN NS ns2.xyz.com.

xyz.com. 14440 IN A 123.123.123.12 (primary IP Address)

localhost.xyz.com. 14440 IN A 127.0.0.1

xyz.com. 14440 IN MX 0 xyz.com.

mail 14440 IN CNAME xyz.com.


To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
14440 IN CNAME xyz.com.

ftp 14440 IN A 123.123.123.13

ns1 14440 IN A 123.123.123.12

ns2 14440 IN A 123.123.123.13

server1 14440 IN A 123.123.123.12 (primary IP Address)

-------------------------------------------


If you do not have A records for your Nameservers add them now. If you use Managed DNS for your domain name, also add A records to your domain name with your DNS.

If you made changes to your zone file, scroll down to the bottom and click on Save


Goto DNS Functions =>> Perform a DNS Cleanup


Now log out of WHM and SSH to your server and login as root.

Note: You can download Putty by Clicking Here (
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
). It's a clean running
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
that will not require installation on Windows-boxes.

Once logged in...

At command prompt type: pico /etc/nameserverips

Make sure all of your nameservers are listed

123.123.123.12=ns1.xyz.com
123.123.123.13=ns2.xyz.com
123.123.123.14=0
123.123.123.15=0
123.123.123.16=0

Remove any nameservers that do not belong.

If you make changes to the file, then press the following keys on your keyboard Ctrl o and then Enter to save the file, then Ctrl x to exit.


At command prompt type: pico /etc/resolv.conf

There should only be three records in the resolv.conf file... localhost, primary nameserver, secondary nameserver.

nameserver 127.0.0.1
nameserver 123.123.123.12
nameserver 123.123.123.13

Remove anything else and then save and exit.


At the prompt type: pico /etc/
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
Make sure all of the information is correct. Remove anything that does not belong, save, then exit.

ADDR 123.123.123.12
CONTACTEMAIL
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.

CONTACTPAGER
DEFMOD x
ETHDEV
FTPTYPE proftpd
HOMEDIR /home
HOMEMATCH home

To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
server1.xyz.com
LOGSTYLE combined
MINUID
NS ns1.xyz.com
NS2 ns2.xyz.com
ns3
SCRIPTALIAS y
ns4



At the prompt type: pico /etc/named.conf

Scroll down to the bottom of the file to the zone records.

-------------------------------------------

zone "xyz.com" {
type master;
file "/var/named/xyz.com.db";
};

-------------------------------------------

Make sure all domain zone records are correct. Remove any zone records that are old or do not belong there. If you make any changes, save and then exit.


At the prompt type: pico /etc/
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
.conf[b]

This file should look like this:

[b]order hosts,bind


At the prompt type: pico /etc/
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.


This file should look like this:

-------------------------------------------

# Do not remove the following line, or various programs
# that require network functionality will fail.
123.123.123.12 server1.xyz.com server1
127.0.0.1 localhost

-------------------------------------------


Now your done and your nameservers will work like a pro.


Source:
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old April 1st, 2008, 01:29 AM
Senior Member
 
Join Date: Mar 2008
Posts: 115
Default

Thats good to here having a name server and I have adoubt doed these people are going to charge the fees for the purpose of maintanence?. If so what is the amount?.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old April 9th, 2008, 10:01 AM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default Had to POST to Say Thank YOU!!

Hi...

Just want to post this and say thanks for putting it up...Have been wrestling with my DNS setup for days, and this helped me get rid of my dig, host, errors.

Thanks again.

Cameron

To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old April 10th, 2008, 06:14 AM
Junior Member
 
Join Date: Mar 2008
Posts: 14
Default

How about if you want to add additonal name servers for a resellers account?

How would this be done in WHM and assign Ip for each name server?

How many FTP,Mail entry's would their be in the DNS zone for this?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Step by Step Guide to Setting up a New WHM cPanel Server for Web Hosting Accounts webguru Dedicated Servers (Offers and Requests) 0 August 31st, 2007 08:58 AM


All times are GMT -4. The time now is 09:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
RSS Feeds
Mortgage | Life Insurance | Cycling Training Logs | Mortgages | Remortgages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20