DNS: Can public and private data be hosted by the same server?

Dan Thurman dant at cdkkt.com
Tue Jun 10 15:54:02 UTC 2008


On Tuesday 10 June 2008 08:30:26 am Daniel B. Thurman wrote:
> On Monday 09 June 2008 10:49:49 pm Tim wrote:
> > On Mon, 2008-06-09 at 11:34 -0700, Dan Thurman wrote:
> > > file '/var/log/named/named.log': file not found
> > >
> > > What am I doing wrong?
> >
> > Are you running BIND chrooted?  Perhaps the logs are supposed to be
> > chrooted as well.  If so, have a look inside the chroot environment
> > (/var/named/chroot/).
> > e.g. /var/named/chroot/var/log/named.log
> > I haven't played with logging named for a long time, so I can't recall
> > how it goes about things.
>
> Ok, that was it.  I moved the /var/log/named to /var/named/chroot/var/log
> directory, ran restorecon -vR named, chown -R named:named named, restarted
> named and the logs are now being written into.
> Only one snag: selinux.
> So, I fired of a question to the selinux mailing list asking for a
> resolution. Thanks for your help!
> Dan

I solved the selinux above.  Apparently restorecon incorrectly
set the named directory to the wrong context (named_conf_t)
so I had to manually set it to named_log_t. After that, everything
now works well!

Again, thanks!
Dan







More information about the fedora-list mailing list