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 isn't responding to nslookup

Discussion in 'Bind / DNS / Nameserver Issues' started by alwaysweb, May 22, 2002.

  1. alwaysweb

    alwaysweb Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Dallas, TX
    cPanel Access Level:
    Root Administrator
    If I SSH in to any other server and then do:

    $ nslookup (to enter interactive mode)

    Then

    server ns19.alwayswebhosting.com

    Then

    djcracky.com

    (a site hosted on server10)

    It comes back with SERVFAIL... Whats wrong?

    I checked

    /etc/rc.d/init.d/named status and it appears to be running fine with a few PID's.

    Thanks for any advice! :)

    Ronnie
     
  2. bdraco

    bdraco Guest

    [quote:edd5f75a0f][i:edd5f75a0f]Originally posted by alwaysweb[/i:edd5f75a0f]


    If I SSH in to any other server and then do:

    $ nslookup (to enter interactive mode)

    Then

    server ns19.alwayswebhosting.com

    Then

    djcracky.com

    (a site hosted on server10)

    It comes back with SERVFAIL... Whats wrong?

    I checked

    /etc/rc.d/init.d/named status and it appears to be running fine with a few PID's.

    Thanks for any advice! :)

    Ronnie[/quote:edd5f75a0f]

    grep the /var/log/messages file for the domain name so see why bind had a problem loading the zone.
     
  3. alwaysweb

    alwaysweb Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Dallas, TX
    cPanel Access Level:
    Root Administrator
    It wont respond for any domain on the server....

    tail of /var/log/messages relating to restart of named:

    --------------------------------------------

    May 21 20:09:52 plain named[5600]: shutting down
    May 21 20:09:52 plain named[5600]: no longer listening on 127.0.0.1#53
    May 21 20:09:52 plain named[5600]: no longer listening on 64.246.42.69#53
    May 21 20:09:52 plain named[5597]: exiting
    May 21 20:09:53 plain named: named shutdown succeeded
    May 21 20:09:53 plain named[8741]: starting BIND 9.1.3 -u named
    May 21 20:09:53 plain named[8741]: using 1 CPU
    May 21 20:09:53 plain named[8744]: loading configuration from '/etc/named.conf'
    May 21 20:09:53 plain named[8744]: the default for the 'auth-nxdomain' option is now 'no'
    May 21 20:09:53 plain named[8744]: no IPv6 interfaces found
    May 21 20:09:53 plain named[8744]: listening on IPv4 interface lo, 127.0.0.1#53
    May 21 20:09:53 plain named[8744]: listening on IPv4 interface eth0, 64.246.42.69#53
    May 21 20:09:53 plain named[8744]: no key statements for use by control channels
    May 21 20:09:53 plain named[8744]: running
    May 21 20:09:53 plain named: named startup succeeded

    --------------------------------------------


    I only see a few FTP sessions in 'messages' about djcracky.com. Another domain that isn't loading whose DNS has had sufficient time to propagate is: worktime.org


    Here's the grep of message for both domains:


    May 20 20:22:43 plain PAM_pwdb[23567]: (ftp) session opened for user worktime by (uid=0)
    May 20 20:29:45 plain PAM_pwdb[23567]: (ftp) session closed for user worktime


    root@server10 [~]# cat /var/log/messages | grep djcracky
    May 20 22:48:10 plain PAM_pwdb[26224]: (ftp) session opened for user djcracky by (uid=0)
    May 20 22:51:31 plain PAM_pwdb[26224]: (ftp) session closed for user djcracky
    May 20 22:53:28 plain PAM_pwdb[26269]: (ftp) session opened for user djcracky by (uid=0)
    May 20 23:06:42 plain PAM_pwdb[26474]: (ftp) session opened for user djcracky by (uid=0)
    May 20 23:06:44 plain PAM_pwdb[26474]: (ftp) session closed for user djcracky
    May 20 23:07:30 plain PAM_pwdb[26477]: (ftp) session opened for user djcracky by (uid=0)
    May 20 23:07:35 plain PAM_pwdb[26477]: (ftp) session closed for user djcracky
    May 20 23:08:50 plain PAM_pwdb[26269]: (ftp) session closed for user djcracky
    May 20 23:15:36 plain PAM_pwdb[26611]: (ftp) session opened for user djcracky by (uid=0)
    May 20 23:15:39 plain PAM_pwdb[26611]: (ftp) session closed for user djcracky
    root@server10 [~]#


    Propagation confirmed by visiting:

    http://betterwhois.com/bwhois.cgi?domain=djcracky.com
    and
    http://betterwhois.com/bwhois.cgi?domain=worktime.org

    Thanks for any help!
     
  4. alwaysweb

    alwaysweb Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Dallas, TX
    cPanel Access Level:
    Root Administrator
    P.S.

    /etc/named.conf does contain....


    zone &djcracky.com& {
    type master;
    file &/var/named/djcracky.com.db&;
    };



    and


    zone &worktime.org& {
    type master;
    file &/var/named/worktime.org.db&;
    };



    and the contents of each of those files respectively are:



    root@server10 [~]# cat /var/named/worktime.org.db
    ; WwwAcct 2.5
    ; Zone file for worktime.org
    @ 14400 IN SOA ns19.alwayswebhosting.com. ronnie.alwayswebhosting.com. (
    1021942097 ; serial, todays date+todays
    28800 ; refresh, seconds
    7200 ; retry, seconds
    3600000 ; expire, seconds
    86400 ) ; minimum, seconds

    worktime.org. 14400 IN NS ns19.alwayswebhosting.com.
    worktime.org. 14400 IN NS ns20.alwayswebhosting.com.
    worktime.org. 14400 IN A 64.246.42.69

    localhost.worktime.org. 14400 IN A 127.0.0.1

    worktime.org. 14400 IN MX 0 worktime.org.

    mail 14400 IN CNAME worktime.org.
    www 14400 IN CNAME worktime.org.
    ftp 14400 IN CNAME worktime.org.




    root@server10 [~]# cat /var/named/djcracky.com.db
    ; WwwAcct 2.5
    ; Zone file for djcracky.com
    @ 14400 IN SOA ns19.alwayswebhosting.com. ronnie.alwayswebhosting.com. (
    1021950292 ; serial, todays date+todays
    28800 ; refresh, seconds
    7200 ; retry, seconds
    3600000 ; expire, seconds
    86400 ) ; minimum, seconds

    djcracky.com. 14400 IN NS ns19.alwayswebhosting.com.
    djcracky.com. 14400 IN NS ns20.alwayswebhosting.com.
    djcracky.com. 14400 IN A 64.246.42.69

    localhost.djcracky.com. 14400 IN A 127.0.0.1

    djcracky.com. 14400 IN MX 0 djcracky.com.

    mail 14400 IN CNAME djcracky.com.
    www 14400 IN CNAME djcracky.com.
    ftp 14400 IN CNAME djcracky.com.
    root@server10 [~]#



    The name servers ns19.alwayswebhosting.com and ns20.alwayswebhosting.com have been registered with our registrar and are pinging fine by the server and for me as well:

    ns19 - 64.246.43.200
    ns20 - 64.246.43.201


    We are trying to transition away from ensim (we have 10 servers, 8 with ensim) so i do have experience troubleshooting ensim's quirks... especially related to DNS. This is our 2nd cpanel server, and haven't see this before. Thanks!

    I can provide access to the box as necessary. Please consider this 'thread' urgent.
     
  5. alwaysweb

    alwaysweb Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Dallas, TX
    cPanel Access Level:
    Root Administrator
    P.S.S.

    When adding a site, at the bottom of WWWAct 2.5 output, I get:

    &snip&....
    DocumentRoot: &/home/rochebug/public_html&
    Setting Password
    Restarting NameServer
    Restarting apache
    Ftp Password Files synced
    ndc: connect: connection refused


    Even though named restarts fine via the GUI and command -line. Help!
     
  6. alwaysweb

    alwaysweb Well-Known Member

    Joined:
    Mar 8, 2002
    Messages:
    97
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Dallas, TX
    cPanel Access Level:
    Root Administrator
    still investigating further... :)


    By comparing /etc/named.conf from our other functional cpanel server (only difference is this server is set up with its own ns1/ns2.domain.com)

    Noticed

    include &/etc/rndc.key&;

    wasn't included right before the zone definitions. Included that and was able to get:

    root@server10 [~]# rndc reload
    rndc: reload command successful

    and now a named restart says:

    ....
    May 22 07:55:56 plain named[19781]: command channel listening on 127.0.0.1#953

    so at least the control panel is there now! I can nslookup then 'server ns19.alwayswebhosting.com' and it responds properly when you query 'aol.com' or 'yahoo.com' but still SERVFAIL 's for any domains set up on its own DNS server.

    Help!
     
  7. buccaneerob

    buccaneerob Active Member

    Joined:
    Feb 3, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Just in case no one ever found a resolution for this I figured I'd help out since i just had the same problem.

    If you have the domain on one server, ex. SERVER A. And you have nameservers for the same domain from SERVER A on SERVER B, SERVER A will get dns errors when trying to communicate with SERVER B, whether it be via email etc. However a quick fix is to add on the domain DNS entries on SERVER A the A entries for the nameservers and their respectable ips located on server B. Hope this helps out feel free to email me if you need clarification!

    rob@pc-craft.com
     
Loading...

Share This Page