Export / Import all zone data

Steven Carr sjcarr at gmail.com
Thu Feb 14 19:52:17 UTC 2013


On 14 February 2013 19:46, Mailinglists <mailinglists at wso.net> wrote:
> I'm looking to migrate all of the zone data from one installation of Bind to another...hardware move. One machine is very old but running a pretty modern version of Bind 9.6-ESV-R8. The other server is running Bind 9.8.2 and is in use, so I'm merging existing zone data with new data, although none of the zones will overlap.
>
> The problem I see is that the actual zone files, the way they are structured, are in an old format. Bind 9.6 must still understand them, but I don't think they are structured the "proper" way. I was hopeful there was an export / import procedure whereby that process would sanitize the zone info and log any errors for manual fixing.
>
> Either this process is dead simple and so nobody documents it or it is all but impossible so nobody documents it...I'm not sure. But an hour of web searches hasn't turned up much, just lots of info about migrating to or from a Windows based DNS to BIND.
>
> A helpful point in the right direction would be appreciated.
>
> Thank you.

If you allow zone transfers to a.n.other machine you should be able to
"dig @nameserver zone.name.com axfr > zone.name.com.db" to perform a
zone transfer and dump it to a file. I believe the standard dig output
is compatible with BIND so you can use the output file as the new BIND
zone file.

Steve



More information about the bind-users mailing list