Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
03-20-2006, 04:53 PM
|
#1
|
LQ Newbie
Registered: May 2004
Posts: 7
Rep:
|
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.
|
|
|
03-21-2006, 01:07 AM
|
#2
|
LQ Newbie
Registered: May 2004
Posts: 7
Original Poster
Rep:
|
Anyone able to help?
|
|
|
03-21-2006, 08:12 AM
|
#3
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
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.
|
|
|
03-22-2006, 03:56 AM
|
#4
|
LQ Newbie
Registered: May 2004
Posts: 7
Original Poster
Rep:
|
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";
|
|
|
03-22-2006, 04:19 AM
|
#5
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,218
|
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;};
};
|
|
|
03-22-2006, 04:26 AM
|
#6
|
LQ Newbie
Registered: May 2004
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
03-22-2006, 04:45 AM
|
#7
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,218
|
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
|
|
|
03-22-2006, 08:21 PM
|
#8
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|