Alternate Name for Name Server

charliep

Member
Nov 25, 2006
7
0
151
I have a DNS Name Server in cpanel set up for:

ns1.name1.com IP Address 1
ns2.name1.com IP Address 2

I would like to set up alternate names for my DNS Name Servers such that:

ns1.name2.com IP Address 1
ns2.name2.com IP Address 2

So that the same name server has two different names. A friend of mine has told me that this is possible to do in Linux, but when he looked at the way cPanel was set up he was scared that he might break something.

I am running WHM 10.8.0 cPanel 10.8.2-R119 with the x Theme.

Can somebody point me to a tutorial on how to do this?
 

Kelmas

Well-Known Member
Nov 6, 2006
121
0
166
Lithuania
First you should register ns1.name2.com and ns2.name2.com at your domain registrar. Then add A records for ns1.name2.com and ns2.name2.com in name2.com zone file.

You also need to tell DNS server these new names. In WHM's DNS servers edit function I belive you can add new name servers if you have free IPs left, so in this case it won't help. I think you will have to edit DNS server configuration file.
 

charliep

Member
Nov 25, 2006
7
0
151
Can you tell me which link in the WHM x Theme I would click on to add A records for ns1.name2.com and ns2.name2.com in name2.com zone file?

Thanks!
 

Kelmas

Well-Known Member
Nov 6, 2006
121
0
166
Lithuania
Can you tell me which link in the WHM x Theme I would click on to add A records for ns1.name2.com and ns2.name2.com in name2.com zone file?

Thanks!
If name2.com already has a zone on your server, you need to find DNS Functions > Edit DNS Zone and choose name2com.

If you do not already have name2.com set up on your server, either park it in cPanel and then edit zone as mentioned above, or use DNS Functions > Add a DNS Zone.

But that's the first step. I am not sure what modifications you have to do in your DNS server config.
 

charliep

Member
Nov 25, 2006
7
0
151
Okay, I created an account for name2.com and then I go in to edit the Zone File of name2.com. Can you please confirm that I should:

Change the two entries for Record Type NS from

ns1.name1.com TO ns1.name2.com

Can you also tell me how to edit DNS server configuration file?

Thanks!
 

charliep

Member
Nov 25, 2006
7
0
151
I am a little confused as to how this should all work. I can point my IP address to the new name server addresses of ns1.name2.com and ns2.name2.com and right now the account on my server is pointing toward ns1.name2.com and ns2.name2.com BUT there is nothing in my server tieing ns1.name2.com to IP address 1 or ns2.name2.com to IP address 2.

Is this what I should modify the name server configuration file to do? If so I would appreciate it if you could provide a kind of detailed description of what I should do.

Thanks!
 

charliep

Member
Nov 25, 2006
7
0
151
Actually, it works! No further configuration required. Just follow these steps:

1. Register the domain
2. With your domain registry, assign a name server to the account.
3. Enter the IP addresses of the previous name servers that are configured on your server so that:

ns1.name1.com --> IP address 1 --> ns1.name2.com
ns2.name1.com --> IP address 2 --> ns2.name2.com

4. Set name servers with registry for this domain to ns1.name2.com and ns2.name2.com.
5. Go to Cpanel and create an account for name2.com
6. Go to DNS Functions > Edit DNS Zone and change the entries for Record Type NS from

FROM ns1.name1.com TO ns1.name2.com
FROM ns2.name1.com TO ns2.name2.com

7. Wait a few hours for things to propogate! You are finished!
 
Last edited: