List Info

Thread: named not starting on reboot




named not starting on reboot
country flaguser name
United States
2007-02-27 11:10:19
Hi there,

I am having troubles with named not starting on boot nor am
I am able to 
start it manually.  I thought I have my chrootdir set
correctly.

here are my settings in my rc.conf

----s nip ----

named_enable="YES"
named_uid="bind"
named_program="/usr/local/sbin/named"
named_flags="-c /etc/namedb/named.conf"
named_chrootdir="/var/named"

---- snip---


here are the /var/log/messages error:


Feb 27 09:07:46 access2 named[2058]: /etc/named.conf:6:
change directory 
to '/var/named/etc/namedb' failed: file not found
Feb 27 09:07:46 access2 named[2058]: /etc/named.conf:6:
parsing failed
Feb 27 09:07:46 access2 named[2058]: loading configuration:
file not found
Feb 27 09:07:46 access2 named[2058]: exiting (due to fatal
error)


_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: named not starting on reboot
country flaguser name
Poland
2007-02-27 11:30:30
Noah wrote:
> Hi there,
> 
> I am having troubles with named not starting on boot
nor am I am able to
> start it manually.  I thought I have my chrootdir set
correctly.
> 
> here are my settings in my rc.conf
> 
> ----s nip ----
> 
> named_enable="YES"
> named_uid="bind"
> named_program="/usr/local/sbin/named"
> named_flags="-c /etc/namedb/named.conf"
> named_chrootdir="/var/named"
> 
> ---- snip---
> 
> 
> here are the /var/log/messages error:
> 
> 
> Feb 27 09:07:46 access2 named[2058]: /etc/named.conf:6:
change directory
> to '/var/named/etc/namedb' failed: file not found
      ^^^^^^^^^^
Here is a mistake. Is a 'directory' in
/etc/namedb/named.conf set to
'/var/named/etc/namedb'?

"/var/named/etc/namedb" is a global path, named
starting in chroot won't
be able to see it. Just change it back to
"/etc/namedb".

HTH,

Karol

-- 
Karol Kwiatkowski   <karol.kwiat at gmail dot com>
OpenPGP 0x06E09309

Re: named not starting on reboot
country flaguser name
United Kingdom
2007-02-27 11:51:40
Noah wrote:
> Hi there,
> 
> I am having troubles with named not starting on boot
nor am I am able to
> start it manually.  I thought I have my chrootdir set
correctly.
> 
> here are my settings in my rc.conf
> 
> ----s nip ----
> 
> named_enable="YES"
> named_uid="bind"
> named_program="/usr/local/sbin/named"
> named_flags="-c /etc/namedb/named.conf"
> named_chrootdir="/var/named"
> 
> ---- snip---
> 
> 
> here are the /var/log/messages error:
> 
> 
> Feb 27 09:07:46 access2 named[2058]: /etc/named.conf:6:
change directory
> to '/var/named/etc/namedb' failed: file not found
> Feb 27 09:07:46 access2 named[2058]: /etc/named.conf:6:
parsing failed
> Feb 27 09:07:46 access2 named[2058]: loading
configuration: file not found
> Feb 27 09:07:46 access2 named[2058]: exiting (due to
fatal error)
> 
> 
What are your permissions on /var/named  ?  how about
/var/named/etc/namedb ? by default i think the chroot stuff
expects or
wants /etc/namedb  to be a symlink to /var/named/etc/namedb,
is this the
case ?

What is line 6 of your /etc/named.conf and why is named
looking for this
rather than /etc/namedb/named.conf as specified.

I have the portsversion of 9.3 with DLZ on my laptop as a
testbed and it
works fine with
named_program="/usr/local/sbin/named"
named_flags="-c /etc/namedb/named.conf"
named_chrootdir="/var/named"
named_enable="YES"

So my guess is permissions or configuration file issue


Vince

> _______________________________________________
> freebsd-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribefreebsd.org"

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: named not starting on reboot
country flaguser name
United States
2007-02-27 12:00:25

Vince wrote:
> Noah wrote:
>   
>> Hi there,
>>
>> I am having troubles with named not starting on
boot nor am I am able to
>> start it manually.  I thought I have my chrootdir
set correctly.
>>
>> here are my settings in my rc.conf
>>
>> ----s nip ----
>>
>> named_enable="YES"
>> named_uid="bind"
>> named_program="/usr/local/sbin/named"
>> named_flags="-c /etc/namedb/named.conf"
>> named_chrootdir="/var/named"
>>
>> ---- snip---
>>
>>
>> here are the /var/log/messages error:
>>
>>
>> Feb 27 09:07:46 access2 named[2058]:
/etc/named.conf:6: change directory
>> to '/var/named/etc/namedb' failed: file not found
>> Feb 27 09:07:46 access2 named[2058]:
/etc/named.conf:6: parsing failed
>> Feb 27 09:07:46 access2 named[2058]: loading
configuration: file not found
>> Feb 27 09:07:46 access2 named[2058]: exiting (due
to fatal error)
>>
>>
>>     
> What are your permissions on /var/named  ?  how about
> /var/named/etc/namedb ? by default i think the chroot
stuff expects or
> wants /etc/namedb  to be a symlink to
/var/named/etc/namedb, is this the
> case ?
>
> What is line 6 of your /etc/named.conf and why is named
looking for this
> rather than /etc/namedb/named.conf as specified.
>
> I have the portsversion of 9.3 with DLZ on my laptop as
a testbed and it
> works fine with
> named_program="/usr/local/sbin/named"
> named_flags="-c /etc/namedb/named.conf"
> named_chrootdir="/var/named"
> named_enable="YES"
>
> So my guess is permissions or configuration file issue
>
>
> Vince
>   

acutally karol's post helped a great deal:

Here is a mistake. Is a 'directory' in
/etc/namedb/named.conf set to
'/var/named/etc/namedb'?

"/var/named/etc/namedb" is a global path, named
starting in chroot won't
be able to see it. Just change it back to
"/etc/namedb".

HTH,


Karol


>   
>> _______________________________________________
>> freebsd-questionsfreebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribefreebsd.org"
>>     
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )