I have some software with a web gui back end to manage some DNS zones. Ive installed BIND manually and would like to keep it chrooted if possible.
zones are created in:
Code:
/var/named/chroot/var/named/zones
The web application auto writes the zone config in named.conf and creates the zone file in the folder above.
zone in named.conf
Code:
zone "example.com" IN {
type master;
file "/var/named/chroot/zones/example.com.txt";
allow-transfer { any; };
};
That is the correct location in the root file system, but not within the named chroot. To resolve this I created a symbolic link:
ls -l /var/named/chroot/var/named
Code:
lrwxrwxrwx. 1 root root 17 May 9 00:32 chroot -> /var/named/chroot
drwxrwxrwx. 2 root root 4096 May 8 21:51 data
drwxrwxrwx. 2 root root 4096 May 8 21:51 zones
Doing so resolves named's file not found failure but throws up a 'invalid file'
Which only occurs when going through a symbolic link.
Permissions appear appropriate on folders and files, manually adjusting named.conf avoiding the symbolic link - named starts right up.
Since creating hard links is not permitted, is there any way to resolve this (while still in chroot) without having to adjust the core of this software I use? Id rather adjust my system to work with these paths so further work isnt necessary with each updates to the software.