The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > BSD
.
google unix.com



BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Openbsd as gateway Problem Peter_APIIT IP Networking 82 12-29-2007 12:22 AM
Irix - startup script problem rshampshire UNIX for Advanced & Expert Users 0 11-16-2006 09:50 AM
OpenBSD : mount problem fnoyan BSD 1 09-18-2004 12:26 PM
databse startup problem vandana UNIX for Dummies Questions & Answers 3 07-29-2002 08:40 AM
problem with the startup Mr.Rudiment UNIX for Dummies Questions & Answers 4 11-14-2001 01:51 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-23-2008
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
[OpenBSD] DNS startup problem

I have the DNS files set up on my OpenBSD 4.0 amd64 system however when I run named, I get the following error in my logs:

Code:
Sep 23 10:43:03 grunty named[11608]: starting BIND 9.3.2-P1
Sep 23 10:43:03 grunty named[11608]: /etc/named.conf:25: change directory to '/var/named' failed: file not found
Sep 23 10:43:03 grunty named[11608]: /etc/named.conf:25: parsing failed
Sep 23 10:43:03 grunty named[11608]: loading configuration: file not found
Sep 23 10:43:03 grunty named[11608]: exiting (due to fatal error)
The directory "/var/named" exists:

Code:
drwxr-xr-x   7 root    named      512 Sep 23 11:06 named
And the subdirectories also exist:

Code:
# ls -la
total 28
drwxr-xr-x   7 root  named  512 Sep 23 11:06 .
drwxr-xr-x  24 root  wheel  512 Aug 12 08:47 ..
drwxrwxr-x   2 root  named  512 Sep 23 11:05 dev
drwxrwxr-x   2 root  named  512 Sep 23 11:05 etc
drwxrwxr-x   3 root  named  512 Sep 23 11:05 master
drwxrwxr-x   2 root  named  512 Sep 23 11:05 slave
drwxrwxr-x   2 root  named  512 Sep 23 11:05 standard
named.conf exists in /var/named/etc:

Code:
# ls -al
total 20
drwxrwxr-x  2 root  named   512 Sep 23 11:05 .
drwxr-xr-x  7 root  named   512 Sep 23 11:06 ..
-rw-r-----  1 root  named  1617 Sep 16  2006 named-dual.conf
-rw-r-----  1 root  named  1407 Sep 16  2006 named-simple.conf
-r--r-----  1 root  named  1973 Sep 23 09:57 named.conf
# pwd
/var/named/etc
As near as I can tell, permissions and directories are all accurate. I've tried moving the directories under /var/named/var/named in case named chroot's before reading the config file but I get the same result.

I've done some poking around on Google and the answers all seem to be "does /var/named/etc exist" and "what are the permissions". I believe I've covered those questions here.

So, any other ideas?

Carl
  #2 (permalink)  
Old 09-23-2008
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Well I started it like this:

named -t / -c /var/named/etc/named.conf

And it's running. From a security standpoint it's not ideal but it's working. And moving the files to the expected chroot'd directory (/var/named) didn't work which is why I used the -t parameter.

Still, if you have any ideas, I'll entertain them.

Carl
  #3 (permalink)  
Old 09-23-2008
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
I figured it out. I was setting up the secondary server on my home OpenBSD box and realized I'd set the directory as "/var/named"; where the home one had it missing. I started the home one without a problem although I needed to transfer the rndc.key file into /var/named/etc and reload the server.

I must have been editing the named.conf file in the past while reading the DNS & bind book and added the entry.

Oh well, learn new things every day

Thanks.

Carl
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0