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.

DNS Issues

Discussion in 'Bind / DNS / Nameserver Issues' started by Aaron Guise, Nov 1, 2011.

  1. Aaron Guise

    Aaron Guise Registered

    Joined:
    Nov 1, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hamilton, New Zealand, New Zealand
    cPanel Access Level:
    Root Administrator
    Hi All,

    I really hope someone can help assist. I have one cPanel/WHM server (ns1) and a cPanel DNS Only server (ns2). The cluster is like this.

    Webserver(ns1) - Synchronise Changes
    -> DNS Only (ns2) Standalone

    So when both of my nameservers are up and responding the requests are balanced between ns1 and ns2 quite ok. However I had an instance the other day when nsd malfunctioned on (ns1) and the websites I host became unavailable due to DNS. ns2 could not be found at all while ns1 was down so the dns would not resolve.

    I clearly must have something wrong in my dns setup and would appreciate if anyone can help point this out.

    I know it was nsd misbehaving as using the IP I was able to login to WHM and once restarted it was working lightning quick.

    I have included my DNS Zone files from the DNS Only server for reference.

    DNS Zone for NS1:
    Code:
    ; cPanel first:11.30.3.5 (update_time):1319454082 11.30.3.5: Cpanel::ZoneFile::VERSION:1.3 hostname:r2d2.webhostingservices.co.nz latest:11.30.4.6
    ; Zone file for ns1.webhostingservices.co.nz
    $TTL 14400
    @      86400    IN      SOA     ns1.webhostingservices.co.nz. support.webhostingservices.co.nz. (
                    2011092901      ; serial, todays date+todays
                    86400           ; refresh, seconds
                    7200            ; retry, seconds
                    3600000         ; expire, seconds
                    86400 )         ; minimum, seconds
    
    ns1.webhostingservices.co.nz. 86400 IN NS ns1.webhostingservices.co.nz.
    ns1.webhostingservices.co.nz. 86400 IN NS ns2.webhostingservices.co.nz.
    
    
    ns1.webhostingservices.co.nz. IN A 119.47.112.232
    
    localhost.ns1.webhostingservices.co.nz. IN A 127.0.0.1
    
    ns1.webhostingservices.co.nz. IN MX 0 ns1.webhostingservices.co.nz.
    
    mail IN CNAME ns1.webhostingservices.co.nz.
    www IN CNAME ns1.webhostingservices.co.nz.
    ftp IN CNAME ns1.webhostingservices.co.nz.
    
    DNS Zone for NS2:
    Code:
    ; cPanel first:11.30.3.5 (update_time):1319454082 Cpanel::ZoneFile::VERSION:1.3 hostname:r2d2.webhostingservices.co.nz latest:11.30.4.6
    ; Zone file for ns2.webhostingservices.co.nz
    $TTL 14400
    ns2.webhostingservices.co.nz.   3600    IN      SOA     ns1.webhostingservices.co.nz.   support.webhostingservices.co.nz.       (
                                                    2011102406 ;Serial Number
                                                    3600 ;refresh
                                                    7200 ;retry
                                                    3600000 ;expire
                                                    3600 ;minimum
            )
    ns2.webhostingservices.co.nz.   86400   IN      NS      ns1.webhostingservices.co.nz.
    ns2.webhostingservices.co.nz.   86400   IN      NS      ns2.webhostingservices.co.nz.
    ns2.webhostingservices.co.nz.   3600    IN      A       199.180.134.116
    localhost       14400   IN      A       127.0.0.1
    ns2.webhostingservices.co.nz.   14400   IN      MX      0       ns2.webhostingservices.co.nz.
    mail    14400   IN      CNAME   ns2.webhostingservices.co.nz.
    www     14400   IN      CNAME   ns2.webhostingservices.co.nz.
    ftp     14400   IN      CNAME   ns2.webhostingservices.co.nz.
    
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You might try having the nameserver A records for ns1 and ns2 on both machines rather than ns1 having the A record for it and ns2 having the A record for it only.
     
Loading...

Share This Page