Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

zone transfer with DIG: SOA duplicate

151 views
Skip to first unread message

hugo hugoo

unread,
Mar 19, 2012, 1:33:58 PM3/19/12
to bind-...@lists.isc.org
Dear all,
 
I have this strange behaviour when I do a zone transfer with the following commande:
 
dig @name_server  zone_name AXFR
 
 
==> I received 2 SOA records (duplicates).
 
One SOA record is at the end of the received  information.
 
 
Is this normal?
 
 
Thanks for any feedback,
 
Hugo,
 
 
PS I used a DIG from a BIND 9.7 on redhat.

Michael Sinatra

unread,
Mar 19, 2012, 1:41:22 PM3/19/12
to hugo hugoo, bind-...@lists.isc.org
On 03/19/12 10:33, hugo hugoo wrote:
> Dear all,
>
> I have this strange behaviour when I do a zone transfer with the
> following commande:
>
> dig @name_server zone_name AXFR
>
>
> ==> I received 2 SOA records (duplicates).
>
> One SOA record is at the end of the received information.
>
>
> Is this normal?

Yes.

In recent versions of dig, you can use the following option, as
documented in the man page:

+[no]onesoa
Print only one (starting) SOA record when performing an
AXFR. The
default is to print both the starting and ending SOA records.


michael

hugo hugoo

unread,
Mar 19, 2012, 1:49:55 PM3/19/12
to mic...@rancid.berkeley.edu, bind-...@lists.isc.org
Hello,
 
thanks for this quick answer.
I am a liitle bit lost...
 
What is the starting and ending SOA record?
 
In the original zone, there is ony one SOA record...
 
Hugo,
 

 
> Date: Mon, 19 Mar 2012 10:41:22 -0700
> From: mic...@rancid.berkeley.edu
> To: hug...@hotmail.com
> CC: bind-...@lists.isc.org
> Subject: Re: zone transfer with DIG: SOA duplicate

Anand Buddhdev

unread,
Mar 19, 2012, 2:01:33 PM3/19/12
to hugo hugoo, bind-...@lists.isc.org
On 19/03/2012 18:49, hugo hugoo wrote:

> thanks for this quick answer.
> I am a liitle bit lost...
>
> What is the starting and ending SOA record?
>
> In the original zone, there is ony one SOA record...

The SOA record at the end signals the end of the zone transfer.

Regards,

Anand

Jan-Piet Mens

unread,
Mar 19, 2012, 2:03:10 PM3/19/12
to bind-...@lists.isc.org
> What is the starting and ending SOA record?
>
> In the original zone, there is ony one SOA record...

The "starting" SOA is the SOA in your zone. The final SOA is used to
indicate end-of-transfer and is a copy of the first; you can safely
ignore it or, as Michael pointed out, supress it.

-JP

michoski

unread,
Mar 19, 2012, 3:03:28 PM3/19/12
to hugo hugoo, mic...@rancid.berkeley.edu, bind-...@lists.isc.org
On 3/19/12 10:49 AM, "hugo hugoo" <hug...@hotmail.com> wrote:
> thanks for this quick answer.
> I am a liitle bit lost...
>
> What is the starting and ending SOA record?
>
> In the original zone, there is ony one SOA record...

FWIW,

When transferring it is normal to get the SOA as first and last record. Use
+onesoa to avoid this with dig. Lots of info on Google about this. Also in
dig's man page, depending on your BIND/dig version.

--
Don't worry about avoiding temptation -- as you grow older, it starts
avoiding you. -- The Old Farmer's Almanac


0 new messages