Giter Site home page Giter Site logo

jz2718 / route-53-to-azure-dns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 4dtechnologies/route-53-to-azure-dns

0.0 0.0 0.0 19 KB

Amazon Route 53 to Microsoft Azure DNS Transfer Script

License: GNU General Public License v3.0

PowerShell 100.00%

route-53-to-azure-dns's Introduction

Amazon Route 53 to Microsoft Azure DNS Transfer Script

4D Technologies LLC

Author: Jeff E. Denis

The Task at Hand

Recently, I was tasked with migrating our Amazon Route 53 DNS records to Microsoft Azure DNS. It's not uncommon to have several hundred DNS records for a given zone, and entering them by hand would be nothing less than tedious. So rather than trudge through just under five hundred records and hope that mistakes weren't introduced, I figured a script would be better suited for the task.

Prerequisites

This script assumes the following:

Let's Get Started

Set your Microsoft Azure and Amazon Web Services credentials in the User Defined Variables section of this script. If you're unsure on what your AWS Hosted Zone Id is, try issuing this command in the AWS CLI: "aws route53 list-hosted-zones". This will produce a list of all the DNS zones accessible with your AWS IAM account.

Execute the script. Shortly after execution, it will request Azure login credentials. Be sure to use an account with appropriate permissions for the target subscription ID and resource group.

Once logged in, the script will begin the migration. The basic steps involved are:

  1. Log into Azure and select the target subscription and resource group.
  2. Export the Route 53 DNS records as json.
  3. Parse the export and prepare the records for import into Azure DNS.
  4. Import the records into Azure based on a number of variables, such as record type, while avoiding import of SOA and NS records. These are automatically created with the Azure DNS zone

Precautions

As always, test your work whenever possible in a staged environment. Inspect the results, and only once you're satisfied, run it against a production DNS zone. This script is intended to be run once for migration purposes.

Trademarks

Any trademarks contained in the source code, and/or in the documentation, are the sole property of their respective owners.

route-53-to-azure-dns's People

Contributors

4dtechnologies avatar trekdvorak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.