The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Reseller nameservers - new account zones

Discussion in 'Bind / DNS / Nameserver Issues' started by Kurieuo, Jul 1, 2008.

  1. Kurieuo

    Kurieuo Well-Known Member

    Joined:
    Dec 13, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    I am just wondering about how the DNS zone for new accounts created by resellers should look.

    The DNS for hosting accounts setup under root WHM look like this (and work):

    domain.com. 14400 IN SOA dns1.serverhost.com.

    domain.com. 86400 IN NS dns1.serverhost.com.
    domain.com. 86400 IN NS dns2.serverhost.com.

    ; Zone Records
    ;
    domain.com. 14400 IN A IP-address-of-dns1.serverhost.com

    For resellers who have their own private IP addresses the following gets created (which works):

    domain.com. 14400 IN SOA ns1.resellerdomain.com.

    domain.com. 86400 IN NS ns1.resellerdomain.com.
    domain.com. 86400 IN NS ns2.resellerdomain.com.

    ; Zone Records
    ;
    domain.com. 14400 IN A IP-address-of-dns1.serverhost.com

    If I change the IP address for domain to ns1.resellerdomain.com, it does not work and the resellers main website gets displayed for that domain. That is, if I update the DNS to the following:
    domain.com. 14400 IN SOA ns1.resellerdomain.com.

    domain.com. 86400 IN NS ns1.resellerdomain.com.
    domain.com. 86400 IN NS ns2.resellerdomain.com.

    ; Zone Records
    ;
    domain.com. 14400 IN A IP-address-of-ns1.resellerdomain.com
    Is there something wrong with this? Or do I need to setup something so that the IP address for the reseller is usable for their hosted domains www A record?

    Thanks.
     
    #1 Kurieuo, Jul 1, 2008
    Last edited: Jul 1, 2008
  2. Kurieuo

    Kurieuo Well-Known Member

    Joined:
    Dec 13, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    Realized I had to change the IP address of the actual domains to match the DNS. :eek:
     
  3. Kurieuo

    Kurieuo Well-Known Member

    Joined:
    Dec 13, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    I am able to automate via a Perl script editing all the named DNS files for a reseller's hosted domains (to update to their nameservers and IP addresses to the resellers rather than servers).

    However changing the IP address for each domain belonging to a reseller (to the main reseller IP address) is proving more difficult to automate. I don't want to have to go through each of the reseller's domains one by one either via WHM or the httpd.conf file and update their VirtualHost IP addresses.

    Is there a script or something that can update the VirtualHost IPs for all domains belonging to a reseller? (I recently moved accounts to a new server, and am trying to tidy up the DNS)

    Thanks to anyone who can help.
     
  4. Kurieuo

    Kurieuo Well-Known Member

    Joined:
    Dec 13, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    Nevermind, I found change multiple sites IP addresses. Nice to be able to answer my own questions. :eek: :p
     
Loading...

Share This Page