LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-02-2006, 06:17 PM   #1
zarnold
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora, Solaris
Posts: 15

Rep: Reputation: 0
named cannot find zone files?


I have something like this:

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
include "/etc/rndc.key";

zone "." {
type hint;
file "zones/named.root";
};


But I get an error like: named[28025]: could not configure root hints from 'zones/named.root': file not found


I've tried putting it in
/var/named/zones/
/var/named/chroot/zones
/var/named/

Why can't it find the file...?! I thought that "directory "/var/named";" would be the directory it reads files from..?
 
Old 09-02-2006, 06:29 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try changing

Quote:
zone "." {
type hint;
file "zones/named.root";
};
to

Quote:
zone "." {
type hint;
file "named.root";
};
and put named.root in /var/named

Note that if you are running chrooted, the correct location is something like

/var/named/chroot/var/named
 
Old 09-03-2006, 05:22 PM   #3
zarnold
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora, Solaris
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the help. I'm wondering if anyone can help me with one more issue.

By the way, I've set this up from reading http://web.mit.edu/rhel-doc/4/RH-DOC...4/ch-bind.html ...just so you know that i'm not lazy and coming here.

I've setup bind, forward dns works fine. I have /etc/resolv.conf set to "nameserver localhost".

I have given my local ip address' reverse DNS records, but they do not seem yo be working.

host 192.168.0.111
Host 111.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)


named.0.168.192
Code:
@       IN      SOA     ns1.fake.net. admin.fake.net. (
                        2006090203
                        21600
                        3600
                        604800
                        86400 )
        IN      NS      ns1.fake.net.
111     IN      PTR     lava.fake.net.
fake.net
Code:
@       IN      SOA     ns1.fake.net. admin.fake.net. (
                        2006090202
                        21600
                        3600
                        604800
                        86400 )
        IN      NS      ns1.fake.net.
www     IN      A       192.168.0.111
ns1     IN      A       192.168.0.111
lava    IN      A       192.168.0.111


I also have this for the zone in named.conf:
Code:
zone "0.168.192.IN-ADDR-ARPA" {
type master;
file "zones/named.0.168.192";
};

Thanks
 
Old 09-04-2006, 06:39 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
NOTE - it's in-addr.arpa not in-addr-arpa (a period between addr and arpa, not a hyphen).

Edit - not sure if it's case dependent too.

Edit 2 - on the lazy comment, personally I find bind configuration a bitch. All the info is for quite complex uses, not a plain simple soho job like I use it for, so I was happy to assume you'd done some digging given where you were up to.

Last edited by billymayday; 09-04-2006 at 06:50 AM.
 
Old 09-04-2006, 11:36 AM   #5
zarnold
LQ Newbie
 
Registered: Aug 2006
Distribution: Fedora, Solaris
Posts: 15

Original Poster
Rep: Reputation: 0
I hate to bump threads just to say think you.. but think you! I am blind
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS: Named.conf don point to zone file Swakoo Linux - General 3 09-27-2005 07:02 PM
named classless reverse zone jon3k Linux - Software 1 03-08-2005 09:57 PM
Problems with iptables and DNS/named Zone settings majiclab Linux - Networking 2 10-24-2004 05:27 AM
changing SOAs in named with large numbers of zone files untoldone Linux - Networking 3 08-17-2004 02:35 PM
Bind/named can't open zone files for some reason adam_lang Linux - Networking 2 02-02-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration