0

I am trying to set up a bind server. My named.conf file has the following lines

...
options{
...
directory "/var/named";
...
};
...
zone "sly.net"{
type master;
file "data/db.sly.net";
};
...

My file is at /var/named/data/db.sly.net - but when I try to start the server, I get the error

zone sly.net/IN: loading master file data/db.sly.net: file not found
_default/sly.net/IN: file not found

I'm not sure what the issue could be. Is my file in the correct place?

2
  • 1
    Can you try to specify zone file location like file "/var/named/data/db.sly.net"; garron.me/go2linux/how-setup-dns-server-master-slave-bind.html Commented Jan 3, 2013 at 19:32
  • @Suku I tried that, but it didn't work. Good idea though. Commented Jan 3, 2013 at 20:12

1 Answer 1

2

named may be running as a chroot program with lowered privs.....thus the location of /var/named virtually within the chroot environment may be different than the actual location in a non-chrooted environment.

1
  • I have other issues, but the correct location was /var/named/chroot/var/named/data instead of /var/named/data Commented Jan 3, 2013 at 20:11

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.