Secondary Server DNS problem

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Secondary Server DNS problem

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Might be a chroot thing, remember the path isnt /var/named... its /var/name/run-root/var/...
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post 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
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

So close!

Named didn't like it
Starting named:
Error in named configuration:
/etc/named.conf:1045: open: /var/named/run-root/var/secondaries.include: file not found
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post 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?
Post Reply