derek at computinginnovations.com
Thu Mar 13 14:29:24 UTC 2008
At 08:59 PM 3/12/2008, jekillen wrote:
>I have named running as secondary server on v6.2
>It will not start without a specific configuration file set
>on the command line. After doing some investigation
>it appears that that is because it runs chrooted and
>there is not a symlink from /etc/namedb. Is that a correct
>assumption? I read the man page and it specifies
>the default configuration file as /etc/namedb/named.conf
>and along with this file there are master and slave directories.
>Would I make the /etc/namedb/named.conf file to be a symlink
You can run named chrooted or not. The default is to run chrooted. Look in:
for all the named configuration options and default settings.
If you run chrooted be sure your chroot environment has writeable directory
for the slave files.
>There are some other entries in rc.conf related to named that
>appear in my primary nameserver rc.conf file that relate to getting
>it up at boot but I have lost root access to that machine so I cannot
>recover the rc.conf details and I do not remember what document-
>ation I was using to set it up.
You should not need root access to read /etc/rc.conf. This is usually
given read by all perms.
However, in my rc.conf I set:
named_chroot_autoupdate="NO" # Automatically install/update chrooted
named_chrootdir="" # Chroot directory (or "" not to auto-chroot it)
named_flags= # quoted string for the command line
named_uid= # quoted user name to run as "bind" or "root"
>I was advised to start named as a user other than root but when I
>tried that named would not start because the user I set it to does
>not have write permission in the directory that has the pid file.
Your chroot environment must be set up correctly with the correct perms to
write those files and to read the named.conf file.
>When named starts at boot what user does it run as, by default?
It will run by the named_uid you set in /etc/rc.conf
You will have an easier time getting named to run via the command line,
then set /etc/rc.conf for the correct settings.
/usr/sbin/named -c [to the path and name for naed.conf] -u [the user name
to run as] -t [chroot directory or omit this setting if not chrooting]
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the freebsd-questions