Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when trying to "include" a file

Status
Not open for further replies.

BenRussell

Programmer
Mar 12, 2001
243
US
I am running BIND 9.2.4 and am having a problem. I am trying to include another .conf file but am getting an error every time I try. I edited /etc/named.conf (Im also on a Fedora Core 3 box) and added this:

Code:
include "/usr/share/mysite/named.conf";

However, when I issue the command (over SSH) of "service named start" I get this error:

Code:
[b]service named start[/b]
Starting named: /etc/named.conf:25: open: /usr/share/mysite/named.conf: file not found

Jul 06 18:43:09.123 starting BIND 9.2.4 -g
Jul 06 18:43:09.124 using 2 CPUs
Jul 06 18:43:09.129 loading configuration from '/etc/named.conf'
Jul 06 18:43:09.131 listening on IPv4 interface lo, 127.0.0.1#53
Jul 06 18:43:09.132 listening on IPv4 interface eth0, 65.38.3.6#53
Jul 06 18:43:09.138 command channel listening on 127.0.0.1#953
Jul 06 18:43:09.139 command channel listening on ::1#953
Jul 06 18:43:09.139 ignoring config file logging statement due to -g option
Jul 06 18:43:09.139 couldn't open pid file '/var/run/named/named.pid': Permission denied
Jul 06 18:43:09.139 exiting (due to early fatal error)
Error in configuration file /etc/named.conf :              [FAILED]

I know for a fact that the file exists even though the above error says it does not. I also checked it with named-checkconf and it gave me no errors. It is also owned by root. Any ideas what the problem could be?


- Ben
 
I'm not into bind, but why is it looking at 127.0.0.1 and not the real ip address?

Glen A. Johnson
If you're from the Illinois, Wisconsin or Florida area, check out Tek-Tips in Chicago IL
To get the best answers to your questions, check out faq950-5848
 
If possible, try placing the file in /etc with named.conf.

Else, make sure /usr/share/mysite/named.conf has the correct permissions for named to see it. From my experience it runs as named for user and group. It could be just the log files need to owned by named. I'm not too sure.

All my config statement go in named.conf. The only file I include is /etc/rndc.key.


## Just because you can do something doesn't mean you should.

Lorenzo Wacondo (System Administrator)
 
is your rndc.key file and rndc.conf file located under /etc/namedb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top