LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2011, 09:24 AM   #1
t-murr
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
RHEL 5.5 BIND 9 Question


OK, so I haven't done any UNIX/Linux admin in a LONG time. I find myself needing to build a DNS server for a slave domain in a lab that I'm building. I've built the named.conf file and the zone files ok, they pass the named-checkconf with no errors. But when I restart named, it errors out that it can't find the zone files.

I'm pasting the named.conf and zone file. I've renamed the domains, "mydomain" is the one that I'm trying to build. It will be a slave to "masterdomain."

Like I said, the issue is that when I restart named, it errors out that it can't find the 'mydomain' zone files. I've tried full path to the files, I've tried moving them. Right now they are in /var/named/zone.

I know this has to be something small. Any help is appreciated.

this is the named.conf file
options {
directory "/var/named"; // the default
allow-query { any; };
recursion no;
};
zone "0.0.127.in-addr.arpa" {
type master;
file "zone/localhost.zone";
notify no;
};
zone "mydomain.com" {
type master;
notify no;
file "zone/mydomain";
};
zone "masterdomain.com" {
type slave ;
file "zone/masterdomain";
masters { 12.34.56.78; 12.34.56.77; };
};

this is the mydomain zone file
$TTL 8
@ IN SOA mydomain-dns1.mydomain.com. root.mydomain.com. (
2011112901 ; serial #
4H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum
NS www
localhost A 127.0.0.1
ns1 A 123.45.67.89
dns1 CNAME ns1

Last edited by t-murr; 12-01-2011 at 10:25 AM. Reason: taking out hostname
 
Old 12-01-2011, 10:24 AM   #2
t-murr
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Error message

Here is the error message that I'm getting;

[root@ns1 zone]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone 0.0.127.in-addr.arpa/IN: loading master file zone/localhost.zone: file not found
_default/0.0.127.in-addr.arpa/IN: file not found
zone mydomain.com/IN: loading master file zone/mydomain: file not found
_default/mydomain.com/IN: file not found
[FAILED]

I've googled and searched and haven't found anything helpful. This is driving me NUTS! Thanks for any help/guidance.
 
Old 12-01-2011, 10:27 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,913
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
Are you running bind-chroot package? Can you give the output of "rpm -qa |grep -i bind"?

If you are running the bind-chroot stuff then the filenames are relative to the chroot directory of BIND which on RHEL 5 is /var/named/chroot. That means your actual named.conf would need to be in /var/named/chroot/etc rather than /etc and your zone files would need to be under /var/named/chroot/var/named rather than just /var/named.

Also I notice you've put "zone/<file>" as your file name - if using the bind-chroot that would mean the actual files would be in /var/named/chroot/var/named/zone.

Note that although the "real" paths are /var/named/chroot/... in such a configuration your files should not list /var/named/chroot - only what follows it because this is what named will see on start up as its "root" directory.
 
1 members found this post helpful.
Old 12-01-2011, 10:32 AM   #4
t-murr
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
DOH!!! -- Thanks.

I KNEW it was something simple!! Yes I am running chroot, and I'd swear that I had them in /var/named/chroot/var/named first, but alas I must not have. I know I moved the zone directory a few times in troubleshooting so I must have missed it.

Thanks so much. Sometimes just another set of eyes is all you need.

Last edited by t-murr; 12-01-2011 at 10:33 AM.
 
Old 12-01-2011, 10:36 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,913
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
No problem.

If your issue is resolved please go to thread tools at the top and mark the case as solved. It helps others when searching in future to more quickly find solutions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Help configuring Bind on RHEL 5 ma-xr Linux - Server 3 03-03-2011 08:57 PM
named not starting after installing BIND 9.6.0-P1 on RHEL 4 satyendrac Linux - Newbie 4 05-07-2009 06:40 AM
Bind missing from RHEL ES 4? blinton25 Red Hat 3 10-12-2006 08:12 AM
RHEL 4 WS and BIND acami Red Hat 2 07-17-2006 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration