1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Delegate a Subdomain to Different DNS?

Discussion in 'Bind / DNS / Nameserver Issues' started by urantian, Jul 12, 2010.

  1. urantian

    urantian Member

    Joined:
    Jan 26, 2005
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Santa Barbara, California
    I have a subdomain that I need to delegate to DNS servers that are different to where the root domain is pointing. I have seen samples of how this is done in the NAMED.CONFIG, however is there a way to do it from within cPanel? If it's possible, are there any instructions or examples available?

    ---Michael
     
  2. Miraenda

    Miraenda Member

    Joined:
    Jul 28, 2004
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    Do you mean you need to point the subdomain to a different IP basically? Normally, a subdomain has the same DNS as the main domain, but to redirect it elsewere, you'd change the A record for the subdomain to point it to that other location.

    To do that, simply go to WHM > Edit DNS Zone and select the main domain. In the main domain zone, the subdomain should be listed:

    Code:
    subdomain 14400 IN A IP#
    www.subdomain 14400 IN A IP#
    Change the IP# to the new server's IP number where you want the domain to be pointed to instead. If instead of IN A it has IN CNAME for the DNS zone for the subdomain, change the CNAME part to A record, then change the domain.com. part to an IP, since CNAME records take a domain name and A records can only take an IP.
     
  3. urantian

    urantian Member

    Joined:
    Jan 26, 2005
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Santa Barbara, California
    Thank You!

    Thank you for the clear information. That is very helpful.

    ---Michael
     
  4. Miraenda

    Miraenda Member

    Joined:
    Jul 28, 2004
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Coralville, Iowa USA
    You're very welcome :)
     
  5. frestyl

    frestyl New Member

    Joined:
    Jul 30, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I was wondering how this could be applied with the subdomain handling mail?

    As we are waiting on domain transfers I'm trying to get this resolved.

    We are moving a company site form an old host to our server. Our server will only handle the website and the mail will go to their exchange server. Current setup as explained by their current host is this.

    domain.com Website only
    subdomain.domain.com A HOST "exchange servers IP address"

    The exchange server is also resolved to subdomain.domain.net

    I would appreciate any guidance.


    Code:
    Current DNS ZONE
    
    domain.com.    14400    IN    MX          0     subdomain.domain.com
    mail           14400    IN    CNAME              domain.com
    www.           14400    IN    CNAME              domain.com
    subdomain.     14400    IN    A                   (remote IP)
    www.subdomain. 14400    IN    A                   (remote IP)
     

Share This Page