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.

Zone Files Missing?

Discussion in 'General Discussion' started by redcamel, Sep 27, 2005.

  1. redcamel

    redcamel Member

    Joined:
    Jun 23, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I got an email from WHM that my server’s IP resolved to “.” I went to correct the problem via ssh, however when looking in /var/named all my zone files were gone. I then logged into WHM and could see the zones there. Where are my zone files at? Why can I see them in WHM and not in a shell?
     
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Did you try a locate command from shell and see if the zone files are there?
     
  3. redcamel

    redcamel Member

    Joined:
    Jun 23, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    When I use ls in the /var/named directory there are no .db files. They were here before not sure why I can't find them, but DNS appears to be ok? Are the files in a differant directory wiht WHM 10.6.0
     
  4. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Just repeating what Aby said there. Try this:
    # locate -u
    # locate domain.tld.db

    Replace domain.tld with any domain name hosted on your server e.g. # locate abcdef.com.db
     
  5. redcamel

    redcamel Member

    Joined:
    Jun 23, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    They are in the /etc directory! But why and how???
     
  6. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

    I guess your OS is freebsd. There the zone files are found at
    /etc/namedb
    and you normally have a link from that directory to /var/named
     
  7. redcamel

    redcamel Member

    Joined:
    Jun 23, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Nope....CentOS. They were in the /var/named, but somehow they have been moved to /etc. Any ideas?
     
  8. avijit

    avijit Well-Known Member

    Joined:
    Jul 26, 2004
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Check the /etc/named.conf

    Where are the zone files are being kept ?

    Does it look like :
    Code:
    zone "localhost" IN {
            type master;
            file "/var/named/localhost.zone";
            allow-update { none; };
    };
    
    or

    Code:
    zone "localhost" IN {
            type master;
            file "/etc/localhost.zone";
            allow-update { none; };
    };
    

    Is the ...

    Code:
    options {
            directory "/var/named";
            /*
             * If there is a firewall between you and nameservers you want
             * to talk to, you might need to uncomment the query-source
             * directive below.  Previous versions of BIND always asked
             * questions using port 53, but BIND 8.1 uses an unprivileged
             * port by default.
             */
            // query-source address * port 53;
    };
    
    Changed to ..

    Code:
    options {
            directory "/etc";
            /*
             * If there is a firewall between you and nameservers you want
             * to talk to, you might need to uncomment the query-source
             * directive below.  Previous versions of BIND always asked
             * questions using port 53, but BIND 8.1 uses an unprivileged
             * port by default.
             */
            // query-source address * port 53;
    };
    
     
Loading...

Share This Page