Named Server

Drexxorx

Verified User
Joined
Nov 13, 2006
Messages
12
It automatically jail itself in Chroot folder when i install directadmin or do i need to manually go and change it?
 
Last edited:
Whether or not your copy of BIND uses chroot depends entirely on your OS distribution.

Note that DA presumes a non-chrooted environment for BIND as it places the zone files in the /var/named/ directory.

I'll ask DA support to take a look at this thread.

Jeff
 
Our default install assumes it's not jailed. If it has become jailed you can undo it with this guide:
http://help.directadmin.com/item.php?id=128

If you DO want it jailed, you *can* actually do so by modifying the templates around a bit.

1) edit /usr/local/directadmin/conf/directadmin.conf
change:
Code:
nameddir=/var/named
to
Code:
nameddir=/var/named/chroot/named
restart DA.

2)
Code:
cd /usr/local/directadmin/data/templates
cp zone.conf custom
cd custom
edit the ./data/templates/custom/zone.conf file, change:
Code:
zone "|DOMAIN|" { type master; file "[b]|PATH|[/b]/|DOMAIN|.db"; };
to
Code:
zone "|DOMAIN|" { type master; file "[b]/var/named[/b]/|DOMAIN|.db"; };

That's about it.. and of course, make sure named is chrooted by setting it in /etc/sysconfig/named
ROOTDIR=/var/named

John
 
Back
Top