Page 1 of 1
Secondary Server DNS problem
Posted: Mon Jul 23, 2007 2:39 pm
by Highland
I've been trying to get the secondary script running on my new server but I can't get gen-secondaries.sh to work. The path seemed old so I updated it but no go. The first line is repeated with a different line error for quite a while. What am I missing?
./gen-secondaries.sh: line 17: /var/www/vhosts/default/httpdocs/secondaries.include: No such file or directory
chmod: cannot access `/var/www/vhosts/default/httpdocs/secondaries.include': No such file or directory
Posted: Mon Jul 23, 2007 2:55 pm
by scott
Might be a chroot thing, remember the path isnt /var/named... its /var/name/run-root/var/...
Posted: Mon Jul 23, 2007 3:42 pm
by Highland
Ok, figured it out (I hope).
When editing the file, you need to edit the path as well to
/var/www/vhosts/default/htdocs
The old path starts with /home... Once that's done it will write the secondaries.include file just fine
Posted: Mon Jul 23, 2007 6:15 pm
by Highland
So close!
Named didn't like it
Starting named:
Error in named configuration:
/etc/named.conf

open: /var/named/run-root/var/secondaries.include: file not found
Posted: Mon Jul 30, 2007 1:19 pm
by Highland
So I've plowed through the problem (the 64 bit box didn't come with named chrooted for some reason) and I've got named reading the secondaries.include file and not choking on it.
The problem now is that named appears to not be answering for anything in secondaries.include. I ran a DNS report and the secondary server came up lame. Named is running on both servers.
Any ideas?