DNS zone files in Win 2k3 to Bind.

Tags:

Hi all,

I need to import many zone files in Win 2k3 to Bind.
"Bind" does not accept the format of these files, and I can not write by hand.
Do you know any tool or script to convert formats in zone files?

Thank you all.

Rubén Figols

PD: Sorry for my English... :-(

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

DNS zone files in Win 2k3 to Bind.

Am Wednesday, den 30 January hub Figols, Ruben folgendes in die Tasten:

Hi!

> I need to import many zone files in Win 2k3 to Bind.
> "Bind" does not accept the format of these files, and I can not write by hand.
> Do you know any tool or script to convert formats in zone files?

Did I get you right, that you want to export DNS information from Win
2k3 DNS servers and want to import them in bind?

Why not just set up the bind server(s) as DNS secondaries and let Win
2k3 push the zone data to them.
When done, just pimp the zonefiles by hand or by $scripting_language
to change SOA and NS entries and make the bind DNS servers primaries.

HTH
Ciao
Max
--
Follow the white penguin.

--

DNS zone files in Win 2k3 to Bind.

Le Wednesday 30 January 2008 19:05:04 Figols, Ruben, vous avez écrit :
> Hi all,
>
> I need to import many zone files in Win 2k3 to Bind.
> "Bind" does not accept the format of these files, and I can not write by
> hand. Do you know any tool or script to convert formats in zone files?

Use the DNS zone transfert standard (AXFR).
Declare your bind as a secondary for your zones (with a file declaration),
allow it to be secondary in Win2k3 and wait.

When the zones data are in sync, you can make your bind primary for theses
zones.

DNS zone files in Win 2k3 to Bind.

I might use a perl'ish script for it. I thought I remembered doing
something similar in the past for an ISP when the AXFR didn't work. I
might be able to dig that up but a zone transfer as suggested here is by
far the easiest.

Steve

On Wed, Jan 30, 2008 at 08:05:08PM +0100, Gilles Mocellin wrote:
> Le Wednesday 30 January 2008 19:05:04 Figols, Ruben, vous avez ?crit?:
> > Hi all,
> >
> > I need to import many zone files in Win 2k3 to Bind.
> > "Bind" does not accept the format of these files, and I can not write by
> > hand. Do you know any tool or script to convert formats in zone files?
>
> Use the DNS zone transfert standard (AXFR).
> Declare your bind as a secondary for your zones (with a file declaration),
> allow it to be secondary in Win2k3 and wait.
>
> When the zones data are in sync, you can make your bind primary for theses
> zones.

--

RE: DNS zone files in Win 2k3 to Bind.

Hi all.

Thanks all for answers.

I cannot declare my bind as a secondary.
The only thing that I can do is import dns zone files ton bind.

The format of these files is:

=========================================
;
; Database file domain.es.dns for domain.es zone.
; Zone version: 20074354509
;

@ IN SOA ns.dnsserver.es. xx.domain.es. (
2007341509 ; serial number
43200 ; refresh
7200 ; retry
2413400 ; expire
10800 ) ; default TTL

;
; Zone NS records
;

@ NS xxx.domain.es.
@ NS xxx. domain.es.
ns.dnsserver.es. A 00.00.00.00
@ NS ns0.dnserver.es.
Ns1.dnsserver.es. A 00.00.00.00
@ NS ns1.eu.verio.net.
Ns2.dnsserver.es. A 00.00.00.00

;
; Zone records
;

@ CNAME domain.es.
www CNAME domain.es.

=========================================

Which is that script? Can you rememeber?

Thanks a lot to everybody!

________________________________

Rubén Figols

-----Mensaje original-----
De: Steve Suehring [mailto:debisp2007@braingia.org]
Enviado el: jueves, 31 de enero de 2008 4:25
Para:
Asunto: Re: DNS zone files in Win 2k3 to Bind.

I might use a perl'ish script for it. I thought I remembered doing
something similar in the past for an ISP when the AXFR didn't work. I
might be able to dig that up but a zone transfer as suggested here is by
far the easiest.

Steve

On Wed, Jan 30, 2008 at 08:05:08PM +0100, Gilles Mocellin wrote:
> Le Wednesday 30 January 2008 19:05:04 Figols, Ruben, vous avez ?crit?:
> > Hi all,
> >
> > I need to import many zone files in Win 2k3 to Bind.
> > "Bind" does not accept the format of these files, and I can not write by
> > hand. Do you know any tool or script to convert formats in zone files?
>
> Use the DNS zone transfert standard (AXFR).
> Declare your bind as a secondary for your zones (with a file declaration),
> allow it to be secondary in Win2k3 and wait.
>
> When the zones data are in sync, you can make your bind primary for theses
> zones.

--

DNS zone files in Win 2k3 to Bind.

On Thu, 2008-01-31 09:16:46 +0100, Figols, Ruben wrote:
> I cannot declare my bind as a secondary.

Why not?

> The only thing that I can do is import dns zone files ton bind.

Why?

> The format of these files is:
>
> =========================================
> ;
> ; Database file domain.es.dns for domain.es zone.
> ; Zone version: 20074354509
> ;
>
> @ IN SOA ns.dnsserver.es. xx.domain.es. (
> 2007341509 ; serial number
[...]
> www CNAME domain.es.
> =========================================

Doesn't look all that wrong. What are the actual error messages you
get from BIND?

MfG, JBG

--
Jan-Benedict Glaw +49-172-7608481
Signature of: Friends are relatives you make for yourself.
the second :

RE: DNS zone files in Win 2k3 to Bind.

Because is a migration to a DNS server that not allows delegation.

I get some errors. When I import zone files, BIND takes a domain name only one letter or some errors appear and it does not form correctly records in zone files.

Thanks a lot,

Rubén Figols

-----Mensaje original-----
De: Jan-Benedict Glaw [mailto:jbglaw@lug-owl.de]
Enviado el: viernes, 01 de febrero de 2008 13:51
Para: Figols, Ruben
CC:
Asunto: Re: DNS zone files in Win 2k3 to Bind.

On Thu, 2008-01-31 09:16:46 +0100, Figols, Ruben wrote:
> I cannot declare my bind as a secondary.

Why not?

> The only thing that I can do is import dns zone files ton bind.

Why?

> The format of these files is:
>
> =========================================
> ;
> ; Database file domain.es.dns for domain.es zone.
> ; Zone version: 20074354509
> ;
>
> @ IN SOA ns.dnsserver.es. xx.domain.es. (
> 2007341509 ; serial number
[...]
> www CNAME domain.es.
> =========================================

Doesn't look all that wrong. What are the actual error messages you
get from BIND?

MfG, JBG

--
Jan-Benedict Glaw +49-172-7608481
Signature of: Friends are relatives you make for yourself.
the second :

DNS zone files in Win 2k3 to Bind.

On Fri, 2008-02-01 14:01:25 +0100, Figols, Ruben wrote:
> De: Jan-Benedict Glaw [mailto:jbglaw@lug-owl.de]
> > On Thu, 2008-01-31 09:16:46 +0100, Figols, Ruben wrote:
> > > The format of these files is:
> > >
> > > =========================================
> > > ;
> > > ; Database file domain.es.dns for domain.es zone.
> > > ; Zone version: 20074354509
> > > ;
> > >
> > > @ IN SOA ns.dnsserver.es. xx.domain.es. (
> > > 2007341509 ; serial number
> > [...]
> > > www CNAME domain.es.
> > > =========================================
> >
> > Doesn't look all that wrong. What are the actual error messages you
> > get from BIND?
>
> Because is a migration to a DNS server that not allows delegation.

BIND allows delegations. And (while not having it used) I cannot
think of a MS DNS server that doesn't allow so put NS RRs into a zone
file.

> I get some errors. When I import zone files, BIND takes a domain
> name only one letter or some errors appear and it does not form
> correctly records in zone files.

Please cut'p'paste the exact error message. Guessing doesn't help in a
professional environment.

MfG, JBG

--
Jan-Benedict Glaw +49-172-7608481
Signature of: Wenn ich wach bin, träume ich.
the second :

Syndicate content