BIND to Amazon Route 53 Conversion Tool

Sample Code & Libraries>BIND to Amazon Route 53 Conversion Tool
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

A BIND zone file describes a DNS zone in a common text-based format. This Perl script converts a BIND zone file to ChangeResourceRecordSetsRequest XML used to add or remove records from Route 53.

Details

Submitted By: Woody
AWS Products Used: Amazon Route 53
Languages(s): Perl
License: Apache License 2.0
Created On: December 4, 2010 1:12 AM GMT
Last Updated: January 31, 2014 12:46 AM GMT
Download

About This Sample

  • A BIND zone file describes a DNS zone in a common text-based format.
  • This Perl script converts a BIND zone file to a ChangeResourceRecordSetsRequest XML document which can be used to add or remove records from an Amazon Route 53 hosted zone.

Prerequisites

  • This sample was tested with Perl 5.8.8.
  • The following Perl modules, which you can download from CPAN:
    • Net::DNS::ZoneFile
    • NetAddr::IP
    • Net::DNS
    • Net::IP
    • Digest::HMAC
    • Digest::SHA1
    • Digest::MD5
    • MIME::Base64

Running the Sample

  • Run the sample using a command-line interface. For example:
    bindtoroute53.pl --ignore-origin-ns --ignore-soa 
     --origin example.com < example.com.zone > create_request.xml
    
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.