InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

AWS and EC2

  • AWS benefits
  • Broken sudoers file
  • EBS and reliability/durability
  • EC2 api tools on Ubuntu
  • How to extend disk (EBS) size on Amazon Linux
  • Install wordpress AWS Classic Ubuntu
  • Linux instance on AWS Classic
  • Mysql access
  • Mysql service and micro instance
  • Route53 as DNS
  • Upgrade Linux micro instance to small
  • ssh automation
 
  • Home
  • > Tutorials
  • > AWS and EC2

Why and how to use Amazon route53 as DNS

By admin on Dec 14, 2015

Using Amazon route53 has a huge advantage that it offers a TTL of as low as 60 seconds. This means changing IP for your domain can be as fast as 60 seconds everywhere (assuming every DNS server honours TTL value). Here are steps to use route53 as your domain name server (DNS) for a domain registered somewhere else. Note that you don’t need to transfer registrar for this.

Create hosted zone for domain

Go to Amazon route53 console and click on create hosted zone. Enter your domain name and click on create button.
amazon-create-hosted-zome-screen

Note the Amazon name servers

Previous will create few NS servers for your domain. Make a note of these. These needs to be updated at domain admin interface provided by your domain registrar.
amazon-hosted-zone-ns-records

Create one A record for top level domain

Now we’ll create a new record set for your domain. We’ll create one A level record for top level domain. You can create more A records for subdomain and/or cnames if required. Crate name part empty for top level domain. Select type A IPv4 (unless you are creating IPv6 entry) and enter IP address value. Alias should be “No” and leave TTL to default value. Once everything is done, click create.
amazon-hosted-zone-create-new-record-set-type-a

Validate A record by querying name server

[Optional] To validate if entry is created in Amazon name servers, query one of the name servers noted above using dig. Please note that these name servers not yet registered at registrar’s end. That is why we are querying by specifying a specific name server.

$ dig @ns-287.awsdns-35.com yourdomain.com
...
...
;; ANSWER SECTION:
yourdomain.com.     300 IN  A   52.8.183.64
...
...

Update name servers entries at registrar’s site

Goto the domain admin interface provided by your registrar and replace the default name servers with the name servers from route53 interface we noted above. Once done, you can validate by querying the name servers of your domain using dig.

$ dig -t ns yourdomain.com

If nameservers are updated, you should see something like this in answer section in dig response:

;; ANSWER SECTION:
yourdomain.com.		21599	IN	NS	ns-287.awsdns-35.com.
yourdomain.com.		21599	IN	NS	ns-1102.awsdns-09.org.
yourdomain.com.		21599	IN	NS	ns-725.awsdns-26.net.
yourdomain.com.		21599	IN	NS	ns-2038.awsdns-62.co.uk.

Suggested posts:

  1. How to add more DNS servers to Wi-Fi interface on Mac
  2. How to transfer android apk using adb
  3. Using JSLint on command line on Ubuntu linux – quick start guide
  4. How to setup ssl (https) for your site on Ubuntu Linux
  5. How to locally override website domain (or hostname) to IP mapping
  6. How to capture php code or included file output in a variable
  7. How to create rss feed for wordpress blog on Google feedburner
  8. How to set up google analytics profiles for domain and sub-domain tracking
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged AWS and EC2, Tutorials, Web Development
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress