At Mailprotector, we are giving Amazon’s Route 53 DNS service a try to give our DNS infrastructure an instant boost.

It answers DNS queries with low latency by using a global network of DNS servers. Queries for your domain are automatically routed to the nearest DNS server, and thus answered with the best possible performance.

The cost to setup the equivalent DNS network on our own is ridiculous compared to the cost of Route 53. And given the API functionality, we can easily integrate our backend systems to do dynamic updates to DNS to control routing of mail on the fly.

But getting our existing DNS zones into Route 53 was an immediate challenge as we have many custom records for controlling routing. In order to be sure we got the zones imported exactly, we wanted to be able to do it directly off of the zone files.

After some quick searching around and playing with a few options, I discovered the cli53 interface gave us exactly what we needed. It is a python script that uses a command line interface but makes the task of importing very easy.

There was one catch though. The zone files we had didn’t have origin defined in them and resulted in an UnknownOrigin exception being thrown when we initially tried the import. This was easy fix. Just simply adding the following line to the top of the zone file fixed the issue:

;origin domain.com

One command later we had an entire zone fully setup in Route 53.

  • http://www.dns30.com udit

    Hi,

    To route your DNS queries through the Naming servers , There are growing edge locations world wide for these naming servers.
    I am one of the developer of an interface for Amazon route 53, which is http://www.dns30.com
    It is a web based UI tool.

  • http://www.joycebabu.com/ Joyce Babu

    Thank you for the post. I too faced the unknown origin exception. Your solution did not work for me. I solved it by adding

    $ORIGIN mydomain.com.

  • http://www.joycebabu.com/ Joyce Babu

    I am really glad I posted the above comment. I was experiencing the same error, while migrating my sites to another server :)