InfoHeap
Tech tutorials, tips, tools and more
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
  • 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. DIG quick start tutorial for DNS Lookup
  2. HTTP cookie and sub domains
  3. Use x2go to access remote Ubuntu Linux
  4. Benefits of using Amazon AWS – EC2
  5. Ssh automation on Amazon EC2 Ubuntu Linux
  6. How to create Linux instance on Amazon AWS/EC2 Classic
  7. Install Amazon EC2 api tools on Ubuntu Linux
  8. How to install wordpress on Amazon AWS-EC2 Classic Ubuntu Linux micro instance
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged AWS and EC2, Tutorials, Web Development

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | 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

Copyright © 2023 InfoHeap.

Powered by WordPress