Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    14

    Default Zone Files Missing?

    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. #2
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Lightbulb

    Quote Originally Posted by redcamel
    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?
    Did you try a locate command from shell and see if the zone files are there?
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    14

    Default

    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. #4
    Zaf
    Zaf is offline
    Member
    Join Date
    Aug 2005
    Posts
    119

    Default

    Quote Originally Posted by redcamel
    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
    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. #5
    Member
    Join Date
    Jun 2005
    Posts
    14

    Default

    They are in the /etc directory! But why and how???

  6. #6
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Lightbulb

    Quote Originally Posted by redcamel
    They are in the /etc directory! But why and how???

    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
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  7. #7
    Member
    Join Date
    Jun 2005
    Posts
    14

    Default

    Nope....CentOS. They were in the /var/named, but somehow they have been moved to /etc. Any ideas?

  8. #8
    Member avijit's Avatar
    Join Date
    Jul 2004
    Location
    India
    Posts
    116

    Default

    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;
    };
    Stop Reymond !! A single conversation with a wise man is better than ten years of study. So....

Similar Threads & Tags
Similar threads

  1. Zone templates missing
    By BurnOut in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-12-2007, 09:02 PM
  2. All zone domain zones missing
    By flashweb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-29-2006, 01:08 PM
  3. Missing Zone Files and named.conf
    By WebTrooper in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-20-2005, 11:41 PM
  4. Replies: 0
    Last Post: 01-20-2005, 06:24 AM
  5. Missing Zone files
    By Nico in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-27-2003, 10:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube