HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Page4-DNS Server (http://www.howtoforge.com/forums/showthread.php?t=23180)

Linocks 12th May 2008 06:44

The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Page4-DNS Server
 
The DNS won't start in the above installation process. It starts after the installation of bind9 but won't start after I run the commands to run BIND Chrooted.:confused: Please see attached file.

Linocks 12th May 2008 07:03

The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Page4-DNS Server
 
Below are the :

Contents of /etc/default/bind9

OPTIONS="-u bind -t /var/lib/named"
# Set RESOLVCONF=no to not run resolvconf
RESOLVCONF=yes

AND the :


Contents of /etc/default/syslogd


#
# Top configuration file for syslogd
#

#
# Full documentation of possible arguments are found in the manpage
# syslogd(8).
#

#
# For remote UDP logging use SYSLOGD="-r"
#
SYSLOGD="-a /var/lib/named/dev/log"

Rocky 12th May 2008 13:37

Did you disable apparmor? If not, try the following:
Disable AppArmor
/etc/init.d/apparmor stop
update-rc.d -f apparmor remove

After that, restart bind. If it works, then you're good to go, if not, then try redoing the following steps:

Create the necessary directories under /var/lib:
mkdir -p /var/lib/named/etc
mkdir /var/lib/named/dev
mkdir -p /var/lib/named/var/cache/bind
mkdir -p /var/lib/named/var/run/bind/run

Then move the config directory from /etc to /var/lib/named/etc:
mv /etc/bind /var/lib/named/etc

Create a symlink to the new config directory from the old location (to avoid problems when bind gets updated in the future):
ln -s /var/lib/named/etc/bind /etc/bind

Make null and random devices, and fix permissions of the directories:
mknod /var/lib/named/dev/null c 1 3
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind

After that, restart sysklogd and bind.

Linocks 13th May 2008 12:24

The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Page4-DNS Server
 
Thanks! It worked after I removed 'apparmor'. :o :o

I guess it comes down to RFQ or (RFI - 'Read the F**&$ng Instructions).

My "handy" assistant assured me that all the instructions had been followed. I guess "... if you want something doing properly you should do it yourself!"


All times are GMT +2. The time now is 14:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.