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.

Weired DNS issues...

Discussion in 'Bind / DNS / Nameserver Issues' started by JakReloaded, Apr 22, 2005.

  1. JakReloaded

    JakReloaded Member

    Joined:
    Sep 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    HEy Everyone,

    ID like to know if ANYONE knows whats going on here because im totaly lost...

    We changed hosts the other night and moved our name servers onto the new server...so far so good. Then 24hrs later i still couldnt access any domains associated with the name server.

    So i pinged it ns1.mydomain.com and it get a reply! Kool so i tried pinging mydomain.com....nothing. Ok weired...so i went to enom whom our domain is with and they said the following:

    So i checked WHM, and when i logged in i get prompted EVERY time to create an "A Record" which ive doen a million times before but it keeps asking me for some reason. So after this i went to the service status to see if DNS was down, and acording to the server it was up and running.

    Does anyone know whats going on here? Please if you have any idea, please let me know id REALLY apreciate it...

    Cheers
    JAkReloaded
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    1. WHM > Nameserver Setup > OK

    2. From the root shell run the following twice in a row:

    /scripts/fixndc

    3. When done, run the following:

    rndc status

    That should show something like:
    The number of zones will vary. If you get an error instead restart named and tail the end of the messages log:

    /scripts/restartsrv_named
    tail -30 /var/log/messages


    There should be an indication as to why named is not working.
     
  3. JakReloaded

    JakReloaded Member

    Joined:
    Sep 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hey chirpy!

    thankyou for the quick responce its MUCH apreciated it really is, i ran your command and here is the output:


    root@alpha [~]# rndc status
    number of zones: 26
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    server is up and running
    root@alpha [~]# /scripts/fixndc
    Fixndc using rh9/rhes3/fedora support
    Found key in named.conf ..
    Found controls in named.conf ..
    named.conf has already been fixed!
    root@alpha [~]#
    root@alpha [~]# rndc status
    number of zones: 26
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    server is up and running


    I went to re-check our DNS details on checkdns.net and i get the same error still :( is there ANYTHING else i can try?

    thanks again for the help,

    cheers
    JakReloaded
     
  4. JakReloaded

    JakReloaded Member

    Joined:
    Sep 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    sorry i missed the error log bit you mentioned. For EVERY domain i have on the server it shows the following error for each:

    zone somedomain.co.uk/IN: loading master file /var/named/somedomain.co.uk.db: file not found

    hope this helps,

    cheers
    JakReloaded
     
  5. webhostnet

    webhostnet Member

    Joined:
    Apr 20, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    What OS are you useing? Is named somehow running in a chrooted env? If so, check to see if path to your *.db files is corectly refferenced in your named.conf file.
     
  6. JakReloaded

    JakReloaded Member

    Joined:
    Sep 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hey webhostnet,

    thanks for the reply! We are using Fedora and in regard to your other question:

    im a total DNS Newbie and thus i dont know, sorry. If you could provide me with the details of what i need to do id really apreciate your time!

    Cheers
    JakReloaded
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Try editing /etc/sysconfig/named and comment out the following line like this:

    # ROOTDIR=/var/named/chroot

    Then restart named:

    /scripts/restartsrv_named
    tail -30 /var/log/messages
     
  8. webhostnet

    webhostnet Member

    Joined:
    Apr 20, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I never worked with a Fedore system, so I can't tell you where to look for the chroot directive. Here is a step-by-step "guide" on how to fix your problem. Be aware, system paths MAY VARRY. Use your own! Don't just copy-paste mines!

    - make a backup copy of your current named.file
    Code:
    cp /etc/named.conf /etc/named.conf.MYBACKUP
    
    - search in named.conf untill you find your zones definitions. Looks like:
    Code:
    zone "somedomain.co.uk" {
            type master;
            file "[COLOR=Red]/var/named/[/COLOR]somedomain.co.uk.db";
    };
    
    - write down the path from the file directive. In my example /var/named/
    - use locate or find to search the file in your system
    Code:
    locate somedomain.co.uk.db
    or
    Code:
    find / -name "somedomain.co.uk.db" - print
    - one of `em will yell something like
    Code:
    machine:/etc # locate somedomain.co.uk.db
    [COLOR=Green]/var/lib/named/var/named/[/COLOR]somedomain.co.uk.db
    machine:/etc # 
    
    - be sure both paths (the one you wrote down and the one yelled by locate/find commands are the same). If not, correct the named.conf file untill all the paths point to the right locations. In my example:
    Code:
    old named.conf
    zone "somedomain.co.uk" {
            type master;
            file "[COLOR=Red]/var/named/[/COLOR]somedomain.co.uk.db";
    };
    
    new named.conf
    zone "somedomain.co.uk" {
            type master;
            file "[COLOR=Green]/var/lib/named/var/named/[/COLOR]somedomain.co.uk.db";
    };
    
    Restart named.
    Hope will work and hope I made it easy for a newbie. Good luck!
     
Loading...

Share This Page