LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-20-2009, 08:28 AM   #1
lomax0990
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Rep: Reputation: 0
Bind9 Zone Transfer Issues


O.K so I have two problems:

1.) The zone transfers will work when the named service is restarted. However they dont' seem to happen automatically. Even if I lower the refresh interval to something like 15 or 60 seconds? Unless I'm confused that should mean the slave should poll the master every 60 seconds for updates?

2.) After the zones get transferred it is doing some re-writing of my zone files. The zone files appear to still be valid but its' doing crazy things with my formatting and such. Which is driving me crazy. I'm new to Bind, is this normal? Below are examples of what it's doing to my files (Ignore the ip's and such i'm just testing right now):

Zone File on Primary
Code:
$ORIGIN jacksoncountybash.com.
$TTL 86400
@     IN     SOA    dns1.dothq.com.     webmaster.dothq.com. (
                    2009102009 ; serial
                    60      ; refresh after 6 hours
                    60       ; retry after 1 hour
                    604800     ; expire after 1 week
                    86400 )    ; minimum TTL of 1 day

      IN     NS     dns1.dothq.com.
      IN     NS     dns2.dothq.com.

      IN     MX     10     mail.jacksoncountybash.com.

                        IN     A       10.0.1.20
www                     IN     A       10.0.1.5

Zone file on Slave after being transferred:
Code:
$ORIGIN .
$TTL 86400      ; 1 day
jacksoncountybash.com   IN SOA  dns1.dothq.com. webmaster.dothq.com. (
                                2009102009 ; serial
                                60         ; refresh (1 minute)
                                60         ; retry (1 minute)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                        NS      dns1.dothq.com.
                        NS      dns2.dothq.com.
                        A       10.0.1.20
                        MX      10 mail.jacksoncountybash.com.
$ORIGIN jacksoncountybash.com.
www                     A       10.0.1.5
 
Old 10-20-2009, 09:02 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,655

Rep: Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816
Hi,

1. You''re right about the refresh time. The slave polls master every x seconds (x is the refresh value), but if nothing was changed on master it does not transfer anything. Try to increase the serial on master and see what happens.

2. This is normal behavior. Slave uses this kind of notation for the zone files

Regards
 
Old 10-20-2009, 09:04 AM   #3
lomax0990
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I have increased the serial number on the file and still nothing. If I set the refresh interval to "60" I would expect it to update within 60 seconds. However that is not happening.
 
Old 10-21-2009, 01:41 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,735

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
iirc, if you change the serial num, you still have to restart (master) BIND for it to notice.
 
Old 10-21-2009, 02:18 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,655

Rep: Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816
Yep, chrism01 is right. You have to reload the zone in master for the changes to apply in master. Doing so, master sends a NOTIFY to slave, so the zone is transferred to slave also. This is the default behavior though.
If for some reason you don't want to send notifies when you reload the zone in master, then the slave will poll the master after the refresh time has passed. Finding a different serial it will then automatically transfer the zone.

Regards
 
Old 10-22-2009, 11:33 PM   #6
lastmanstand
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
shall i mention as well that the serial number on master must be greater than slave and not just some random number?
 
Old 10-23-2009, 01:46 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,735

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
Usually it's recommended to use a datetime sequence, for ease of (human) reading eg

YYYYMMDDHHMI

using 24hr format & leading zeros when reqd.
 
  


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
Windows 03 DNS zone transfer to BIND9 on Suse 10 Enterprise clincoln Linux - Networking 11 08-15-2008 01:03 AM
bind9 zone file question r3gan Linux - Software 6 06-18-2008 05:49 PM
bind9: configuration: non-authoritative zone tilman1 Linux - Networking 3 05-11-2008 05:06 PM
shared zone file in bind9 matiasquestions Linux - Server 2 04-04-2008 09:02 AM
DNS Zone x-fer - From one zone to another / Debian 3.1 + BIND9 kenwoodgt Linux - Software 0 11-01-2006 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration