LinuxQuestions.org
Visit Jeremy's Blog.
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 03-20-2006, 04:53 PM   #1
dafunk
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
Bind Zone Transfer


Hi Guys,

Ive just finished setting up my Primary and Secondary DNS, both running Debian 3.1
Primary = 192.168.1.69
Secondary = 192.168.1.3

How do I go about setting up automatic zone transfers from the Primary to Secondary DNS? At the moment, I need to manually create Zones on both servers.
 
Old 03-21-2006, 01:07 AM   #2
dafunk
LQ Newbie
 
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Anyone able to help?
 
Old 03-21-2006, 08:12 AM   #3
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Uh, post your .conf's for each one. Provided the slave knows the IP of the master (or the hostname), it should transfer.

You also have to put "allow-transfer {ipofslave;};" in your master BIND server's .conf file.
 
Old 03-22-2006, 03:56 AM   #4
dafunk
LQ Newbie
 
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Heres my conf files:

Primary:

options {
directory "/var/cache/bind";
allow-transfer { IP of secondary; };
#auth-nxdomain no; # conform to RFC1035

#forwarders {
192.168.1.3;
};
#max-transfer-time-in 1;
#transfer-format many-answers;
};

Secondary:

options {
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
notify no;
allow-query { IP Of Primary; };
one "." in {
type hint;
file "root.hint";
};

zone "localhost" in {
type master;
file "localhost.zone";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
include "/etc/named.conf.include";
 
Old 03-22-2006, 04:19 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,218
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
You didn't show us how you define a zone in your secondary named.conf. Anyway for every zone you should have:
Code:
zone "domain.com" {
        type slave;
        file "domain.com";
        masters {xx.xx.xx.xx;};
};
 
Old 03-22-2006, 04:26 AM   #6
dafunk
LQ Newbie
 
Registered: May 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, so if I add that for each of the zones from the primary to the secondary, how does that make the primary send records to the secondary for all new zones created on the primary dns?

In the "masters" line, do I put the ip of the master dns server?

Last edited by dafunk; 03-22-2006 at 04:28 AM.
 
Old 03-22-2006, 04:45 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,218
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
You must define the zones in both named.conf files for primary and secondary dns (using the keyword: "type master;" and "type slave;" respectively). Then it's the primary's job to inform the secondary for any changes made in a zone record.
And yes in the masters line you must put the IP of your primary dns
 
Old 03-22-2006, 08:21 PM   #8
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
I'm not trying to be a jackass, but what material have you read about stuff like this?

If you get a chance, get the DNS and BIND book from O'Reilly. It explains a lot of this stuff. It's even got some really great information on setting up some really cool things like round robin, dynamic DNS, and other cool junk.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DNS secondary zone transfer problems jc materi Linux - Networking 5 04-04-2007 01:19 PM
dns zone transfer in suse riffe SUSE / openSUSE 1 02-08-2006 07:52 AM
DNS Windows To Linux Zone Transfer? rootking Linux - Networking 2 09-13-2004 02:29 AM
Bind 9 - zone transfer using internal IP ? michael_util Slackware 1 03-25-2004 12:15 PM
DNS - Manual zone transfer roboli Linux - Networking 0 02-27-2002 09:42 AM

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

All times are GMT -5. The time now is 08:18 AM.

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