As part of a corporate network migration, DNS was top of the list.

MyDNSConfig 3.0.1 was the source and Route 53 being the preferred destination.

Step are very straightforward:

  1. Login to AWS Account and navigate to Route 53
  2. Create ‘Hosted Domain’ > enter domain name and a comment (good housekeeping)
  3. Select ‘Import Zone File’
  4. SSH to the MyDNSConfig server
  5. Export a record by the following command:


Which outputs the entire zone file e.g.

$TTL 86400
; Zone: (#213)
; Created by "mydnsexport"
; Thu Jan 19 16:11:16 2017

@ IN SOA . (
2016050607 ; Serial
28800 ; Refresh
7200 ; Retry
604800 ; Expire
86400 ) ; Minimum 86400 IN A 86400 IN MX 5 ALT1.ASPMX.L.GOOGLE.CO M. 86400 IN MX 5 ALT2.ASPMX.L.GOOGLE.CO M. 86400 IN MX 1 ASPMX.L.GOOGLE.COM. 86400 IN MX 10 ASPMX2.GOOGLEMAIL.COM . 86400 IN MX 10 ASPMX3.GOOGLEMAIL.COM . 86400 IN NS 86400 IN NS 86400 IN TXT "google-site-verification=dfg645645745675G6t6DtljVj0dsft654634ter5345" 86400 IN A

6. Highlight the exported records (copy everything from the first A record to the last record)

7. Paste the zone file into ‘Zone File’ in Route 53

8. Select Import

9. Login to the domain registrar and update Name Servers to those specified by Route 53 (found in ‘Hosted Domain’)

That’s all there is to it.

Few things to note:

  • Route 53 will disregard any NS records
  • If there are mutliple TTL values Route 53 will not import. Paste the records into e.g. Notepad++ and do a find/replace to make all values the same e.g. 86400
  • Route 53 will pick up any errors, typos in your zone file and report back on screen
  • This was a very manual process but helped with mitigation of redundant domains
Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: