Skip to content

tonythree/namecheap-to-route53

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Domain transfer from namecheap to Route53

How to successfully migrate your namecheap records to route53 using cli53 :)

Get the Zone file

Login in Namecheap, and ask Namecheap support to send you the zone file of the domain you're transfering. This is a file containing all the records for your specific domain (A, TXT, MX, CNAME...). See zonefile.txt as an example.

Format the Zone file

Namecheap send it to me in .docx format. Copy the text and paste it in a zonefile.txt file. Some other stuff you need to do:

  • Remove whitespaces in the beginning of all lines in zone file.
  • Quote all TXT record values, for example:
@    1799   IN     TXT   example=11111?

should be:

@    1799   IN     TXT   "example=11111?"

Install cli53

brew install cli53
  • cli53 will automatically get your aws credentials. Make sure you are using the correct ones:
aws configure
  • Check cli53 installation by listing the current hosted zones you have in route53. Also shows the record count.
cli53 list

Create Route53 hosted zone

cli53 create example.com --comment 'my first zone'

Replace "example.com" with your domain.

Now, you should see the new created hosted zone by doing:

cli53 list

Import your Zone file in route53 hosted zone

Using cli53, import your zonefile.txt with 1 line of code:

cli53 import example.com --file zonefile.txt

Replace "example.com" with your domain. Now check again, you should see a higher number of records in your hosted zone:

cli53 list

Make sure everything is correct

Please make sure all the records are correct and all of them are imported correctly. In my case, this was 100% correct :)

That's it.

References

http://shon.github.io/2014/12/21/dns_migration_story.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#TXTFormat

About

Transfer domain records from namecheap to Route53 using cli53

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published