i send this command:

/etc/init.d/named start


then i get this error:

Starting named:
Error in named configuration:
/etc/named.conf:3: change directory to '/var/named/chroot/var/named' failed: file not found

/etc/named.conf:3: parsing failed


i had ispconfig installed and i could not get my bind dns named server to come up. i tried these command:




chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 755 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot


but it didnt work.. so i what i did, i removed chroot

yum remove bind-chroot


then i get this:
Setting up Remove Process
turbopanel-fc7 100% |=========================| 951 B 00:00
updates 100% |=========================| 2.3 kB 00:00
turbopanel-base 100% |=========================| 951 B 00:00
fedora 100% |=========================| 2.1 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package bind-chroot.i386 31:9.4.2-3.fc7 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
bind-chroot i386 31:9.4.2-3.fc7 installed 12 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 1 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : bind-chroot ######################### [1/1]

Removed: bind-chroot.i386 31:9.4.2-3.fc7
Complete!


now that i have chroot removed i will install it again

yum install bind-chroot


once i have installed it i send these commands
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 755 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
chkconfig --levels 235 named on
/etc/init.d/named start


wo hoooo, this time it worked

Starting named: [ OK ]