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

    Joined:
    Apr 27, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    Currently I have a server:
    hostname: name.domain.com
    registered nameservers: ns1.domain.com and ns2.domain.com

    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?
    hostname: name2.domain.com

    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?

    Deyan
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    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 xyz.com on the new server,

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


    To make name2.domain.com point to the new server IP, edit the DNS zone of domain.com 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...
Loading...

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