LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 12-10-2003, 08:41 AM   #1
guntanis
LQ Newbie
 
Registered: Dec 2003
Distribution: FreeBSD
Posts: 3
Thanked: 0
Unhappy Slave DNS server


[Log in to get rid of this advertisement]

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;
};
};
guntanis is offline     Reply With Quote
Old 12-10-2003, 09:15 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.5-beta, OS X 10.5.6, CentOS 4 & 5
Posts: 3,631
Thanked: 14
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.
chort is offline     Reply With Quote
Old 12-10-2003, 09:24 AM   #3
guntanis
LQ Newbie
 
Registered: Dec 2003
Distribution: FreeBSD
Posts: 3
Thanked: 0

Original Poster
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!
guntanis is offline     Reply With Quote
Old 12-10-2003, 09:27 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.5-beta, OS X 10.5.6, CentOS 4 & 5
Posts: 3,631
Thanked: 14
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!).
chort is offline     Reply With Quote
Old 12-10-2003, 10:02 AM   #5
guntanis
LQ Newbie
 
Registered: Dec 2003
Distribution: FreeBSD
Posts: 3
Thanked: 0

Original Poster
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!
guntanis is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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-07-2005 12:06 AM
Slave Dns Question kemplej Linux - Networking 5 12-23-2004 02:58 PM
Master/Slave server DNS emailssent Linux - Networking 2 10-04-2004 04:21 AM
Looking for Free Host for Slave DNS Server VorlonInfoTech Linux - Networking 2 09-24-2004 09:39 PM
slave DNS problems granny Linux - Networking 17 12-27-2002 09:06 PM


All times are GMT -5. The time now is 12:15 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration