LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2003, 07:41 AM   #1
guntanis
LQ Newbie
 
Registered: Dec 2003
Distribution: FreeBSD
Posts: 3

Rep: Reputation: 0
Unhappy Slave DNS server



Hi,
I'm setting up a DNS server, I've already succesfuly configured the master dns server but, I'm having troubles with the slave.
What I can't reach is the slave dns to automatically copy the zones from the primary.
I do not know what am I doing wrong. But if I add a zone at the primary and look at the secundary dns is not there.
Does someone has any ideas about how to fix this?

Thanks!

Ps: here is the secundary dns' named.conf.
// $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.7 2003/02/13 13:16:51
keramida Exp $

options {
directory "/etc/namedb";
// allow-transfer "196.40.45.10" ;

// forward only;

forwarders {
127.0.0.1;
};

};

zone "." {
type hint;
file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
type slave;
file "localhost.rev";
masters {
196.40.45.10;
};
};
 
Old 12-10-2003, 08:15 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Your slave needs to be listed as an IN NS record in each zone file on the master that you want it to be a slave for. Updates are not instantaneous, it can take several hours before a slave updates. You also need to restart or kill -HUP your master (AFTER INCREMENTING THE SERIAL ON THE ZONE!) in order for the master to read the new zone information from disk and notify slaves. You should have a log message in /var/log/messages (or whever your daemon information is going) that says "loding zone blah blah with serial 343749827, sending notifications..."

By the way, if you're not already you need to allow 53/TCP from the slave to the master in order to transfer the zone. Zone transfers are always done with TCP, while most (not all!) queries are done over UDP.
 
Old 12-10-2003, 08:24 AM   #3
guntanis
LQ Newbie
 
Registered: Dec 2003
Distribution: FreeBSD
Posts: 3

Original Poster
Rep: Reputation: 0
So, with that I won't have to create new zones in both servers?
or a must create them and the they will update automatically?

Thanks!
 
Old 12-10-2003, 08:27 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Yes, BUT you have to increment the serial number in each zone, each time you change that zone. You also have to restart or -HUP the named process on the primary.

Oh, and each of those zones still has to be defined on the named.conf on the slave (otherwise it wouldn't know it's supposed to be a slave for that zone!).
 
Old 12-10-2003, 09:02 AM   #5
guntanis
LQ Newbie
 
Registered: Dec 2003
Distribution: FreeBSD
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks chort,

That was the problem I was having i didn't know that it also had to be defined on the slave's named.conf.

Thank you very much... Really!

Bye!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transfer error to slave dns server robertngo Linux - Software 1 07-06-2005 11:06 PM
Slave Dns Question kemplej Linux - Networking 5 12-23-2004 01:58 PM
Master/Slave server DNS emailssent Linux - Networking 2 10-04-2004 03:21 AM
Looking for Free Host for Slave DNS Server VorlonInfoTech Linux - Networking 2 09-24-2004 08:39 PM
slave DNS problems granny Linux - Networking 17 12-27-2002 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration