Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to add new hostname to the DNS?

Discussion in 'Bind/DNS/Nameserver' started by deydod, May 13, 2010.

  1. deydod

    deydod Registered

    Apr 27, 2010
    Likes Received:
    Trophy Points:

    Currently I have a server:
    registered nameservers: and

    I've bought new server from another datacenter, but I want to use my old nameservers e.g. ns1 and ns2. How can I accomplish that?

    A friend of my mine told me to edit the Resolver Configuration and to put there the IP addresses of the first server, but I'm not sure if this is right?
    Can you help?

  2. madaboutlinux

    madaboutlinux Well-Known Member

    Jan 24, 2005
    Likes Received:
    Trophy Points:
    Do you want to host websites on the new server but wanted to use the old name servers (i.e. ns1/ns2) ?

    If yes, you just need to create a DNS zone of the domain on the first server for the domains hosted on the new server. You can add them from WHM >> DNS Functions >> Add a DNS Zone.

    i.e. for example, if you host a domain say on the new server,

    1) make sure the name servers and are assigned to the domain in the domain registrar panel and
    2) create a dns zone from the above option, specifying the domain name and the new server IP.

    To make point to the new server IP, edit the DNS zone of from

    First server WHM >> DNS Functions >> Edit a DNS zone

    and add an A record for name2 to point to the new server IP.

    BTW, you can also cluster both the servers so whenever a domain is added on the new server, the DNS zone of that domain will be created on the first server automatically in which case you don't have to add them manually.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice