slave - master synchroniztation for bind9

View: New views
12 Messages — Rating Filter:   Alert me  

slave - master synchroniztation for bind9

by Wojciech Ziniewicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a simple question .

There are 3 servers : Master and two slaves. I have no access to first
master and first slave , only to second slave which went down and we
have to recover all the data.

Before crash ,this second slave was fully authorized in bind on the
rest of the servers (first master and first slave) so the question is
-> how can I download all the zones ?

Your help would be very appreciated

regards
WZ


--
Wojciech Ziniewicz
http://rfc.sunsite.dk/rfc/rfc2324.html


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Bas Roos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

If your slave has the correct configuration (containing the domains for
which it is slave, and the which server is master for the specific
zone), then it should automatically download the zone from the master.

Ie. if you remove the slave zone file itself and reload bind, it will
download the zone again, so it should do so as well in your situation.

Good luck!

Bas

Wojciech Ziniewicz wrote:

> Hi,
>
> I have a simple question .
>
> There are 3 servers : Master and two slaves. I have no access to first
> master and first slave , only to second slave which went down and we
> have to recover all the data.
>
> Before crash ,this second slave was fully authorized in bind on the
> rest of the servers (first master and first slave) so the question is
> -> how can I download all the zones ?
>
> Your help would be very appreciated
>
> regards
> WZ
>
>


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Adam McGreggor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 30, 2009 at 02:15:06PM +0200, Wojciech Ziniewicz wrote:
> Before crash ,this second slave was fully authorized in bind on the
> rest of the servers (first master and first slave) so the question is
> -> how can I download all the zones ?
>
> Your help would be very appreciated

dump the db/source the zonefiles + the config file for the domains.

read your bind config to see how you're storing things.

I imagine that that's one of the BIND FAQs, mind, or something that
would be in the documentation/two minutes of looking at your
bind directory-structure/configs would have told you.

--
"In this world there are only two tragedies. One is not getting what
one wants, and the other is getting it. "
    -- Mr Dumby, (Lady Windermere's Fan)


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Wojciech Ziniewicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/30 Adam McGreggor <lists@...>:

> On Wed, Sep 30, 2009 at 02:15:06PM +0200, Wojciech Ziniewicz wrote:
>> Before crash ,this second slave was fully authorized in bind on the
>> rest of the servers (first master and first slave) so the question is
>> -> how can I download all the zones ?
>>
>> Your help would be very appreciated
>
> dump the db/source the zonefiles + the config file for the domains.
>
> read your bind config to see how you're storing things.
>
> I imagine that that's one of the BIND FAQs, mind, or something that
> would be in the documentation/two minutes of looking at your
> bind directory-structure/configs would have told you.

sure thing , also reading my post carfully would take 30seconds .


regards.



--
Wojciech Ziniewicz
http://rfc.sunsite.dk/rfc/rfc2324.html


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Adam McGreggor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 30, 2009 at 01:36:28PM +0100, Adam McGreggor wrote:

> On Wed, Sep 30, 2009 at 02:15:06PM +0200, Wojciech Ziniewicz wrote:
> > Before crash ,this second slave was fully authorized in bind on the
> > rest of the servers (first master and first slave) so the question is
> > -> how can I download all the zones ?
> >
> > Your help would be very appreciated
>
> dump the db/source the zonefiles + the config file for the domains.
>
> read your bind config to see how you're storing things.

Another way could be to make the second-slave a master, and set the
(restored) other two boxes to be slaves, and just rely on AXFR.

(or maybe even something like dig -axfr > $zone for all the zone, on
the other machines; a trivial read/grep of the zones from the bind
config could feed a script).

--
``If we let people see that kind of thing,
  there would never again be any war.''
  (US spokesman, on news film of Iraqi soldiers killed by helicopter gunfire)


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Wojciech Ziniewicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/30 Bas Roos <bas@...>:

> Hi!
>
> If your slave has the correct configuration (containing the domains for
> which it is slave, and the which server is master for the specific
> zone), then it should automatically download the zone from the master.
>
> Ie. if you remove the slave zone file itself and reload bind, it will
> download the zone again, so it should do so as well in your situation.
>
> Good luck!
>

Hi again ;)

I did not myself clear - my configuration on the second slave server
was wiped out (server crashed) - therefore I have to recover all the
information from the master server having absolutely nothing ( even
list of the zones )

regards.

--
Wojciech Ziniewicz
http://rfc.sunsite.dk/rfc/rfc2324.html


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Wojciech Ziniewicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/30 Adam McGreggor <lists@...>:

> Another way could be to make the second-slave a master, and set the
> (restored) other two boxes to be slaves, and just rely on AXFR.
>
> (or maybe even something like dig -axfr > $zone for all the zone, on
> the other machines; a trivial read/grep of the zones from the bind
> config could feed a script).

Sure , dig with "axfr" option is a nice solution , but i was wondering
is there any way to download the list of the zones from master server
?

regards.
--
Wojciech Ziniewicz
http://rfc.sunsite.dk/rfc/rfc2324.html


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Bas Roos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey!

Retrieving a list of zones that your server is slave for isn't something
one can do with any command as far as I know (but maybe someone else
knows a solution for this). I'd recommend contacting the owner of the
master server and asking for an export of zones that he considers you to
be a slave for.

Good luck again ;)

Bas

Wojciech Ziniewicz wrote:

> 2009/9/30 Bas Roos <bas@...>:
>> Hi!
>>
>> If your slave has the correct configuration (containing the domains for
>> which it is slave, and the which server is master for the specific
>> zone), then it should automatically download the zone from the master.
>>
>> Ie. if you remove the slave zone file itself and reload bind, it will
>> download the zone again, so it should do so as well in your situation.
>>
>> Good luck!
>>
>
> Hi again ;)
>
> I did not myself clear - my configuration on the second slave server
> was wiped out (server crashed) - therefore I have to recover all the
> information from the master server having absolutely nothing ( even
> list of the zones )
>
> regards.
>


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Wojciech Ziniewicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/30 Bas Roos <bas@...>:
> Hey!
>
> Retrieving a list of zones that your server is slave for isn't something
> one can do with any command as far as I know (but maybe someone else
> knows a solution for this). I'd recommend contacting the owner of the
> master server and asking for an export of zones that he considers you to
> be a slave for.
>
> Good luck again ;)

Thank You Bas, but this is my last resort ( complicated bussines case)
 . Further of course I will turn this slave into master and connect
new slaves. Generally I have to migrate but this is out of the scope
of this topic ;)

So , does anybody know how to get list of zones thru axfr or another
query in bind9 ?

 regards
Wz

--
Wojciech Ziniewicz
http://rfc.sunsite.dk/rfc/rfc2324.html


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Michał Pena :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dnia 2009-09-30, o godz. 14:54:40
Wojciech Ziniewicz <wojciech.ziniewicz@...> napisał(a):

> 2009/9/30 Bas Roos <bas@...>:
> > Hey!
> >
> > Retrieving a list of zones that your server is slave for isn't
> > something one can do with any command as far as I know (but maybe
> > someone else knows a solution for this). I'd recommend contacting
> > the owner of the master server and asking for an export of zones
> > that he considers you to be a slave for.
> >
> > Good luck again ;)
>
> Thank You Bas, but this is my last resort ( complicated bussines case)
>  . Further of course I will turn this slave into master and connect
> new slaves. Generally I have to migrate but this is out of the scope
> of this topic ;)
>
> So , does anybody know how to get list of zones thru axfr or another
> query in bind9 ?
>
>  regards
> Wz
>

Turn on verbose logging and look what domains people try to find in
your DNS. Then add them one-by-one (or via 1-line perl script). ;)

--
Best regards,
Michał Pena


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Seth Mattinen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wojciech Ziniewicz wrote:

> 2009/9/30 Bas Roos <bas@...>:
>> Hey!
>>
>> Retrieving a list of zones that your server is slave for isn't something
>> one can do with any command as far as I know (but maybe someone else
>> knows a solution for this). I'd recommend contacting the owner of the
>> master server and asking for an export of zones that he considers you to
>> be a slave for.
>>
>> Good luck again ;)
>
> Thank You Bas, but this is my last resort ( complicated bussines case)
>  . Further of course I will turn this slave into master and connect
> new slaves. Generally I have to migrate but this is out of the scope
> of this topic ;)
>
> So , does anybody know how to get list of zones thru axfr or another
> query in bind9 ?
>

You can't. The suggestion to turn on query logging is your best bet.

~Seth


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: slave - master synchroniztation for bind9

by Wojciech Ziniewicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/30 Seth Mattinen <sethm@...>:

> You can't. The suggestion to turn on query logging is your best bet.


Thank You all .

1. logging of queries (for about a week or so)
and
2. dig @nameserver1.domain.com mydomain.tosynchronize.com axfr

will do the trick ;)

thanks
WZ


--
Wojciech Ziniewicz
http://rfc.sunsite.dk/rfc/rfc2324.html


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...