Skip to content
Sandny Blog
  • Home
  • Java
  • JavaScript
  • AWS
  • Embedded
  • About
How to host GoDaddy domain with AWS EC2 AWS

How to host GoDaddy domain with AWS EC2

  • November 23, 2019November 23, 2019
  • by Coder Kai

Many newbies find AWS and domain providers such as GoDaddy confusing to connect. But it is not a difficult task and you can host GoDaddy domain with AWS EC2 instantly.

To connect AWS with the domain we will have to use a service called Route53 (53 refers thee TCP/UDP port 53 for DNS serving). And also there won’t be any direct way to do without this service. You can use any AWS public gateway provider such as EC2, ELB, S3 to serve your website or server to the public domain you have on GoDaddy. The AWS usually charges about .51 USD per month to maintain this zone entry as well.

We are discussing the following points step by step to set up your domain.

  1. Obtain the Elastic IP or EC2 IP for the website or service.
  2. Create a Hosted Zone on Route53.
  3. Update the domain name records on Hosted Zone.
  4. Update name servers on GoDaddy for discovery.

Obtain the IP for your service

After uploading the website or running the service in EC2, we will need a public IP to expose the container. There are many ways we can configure this. But for this example, I will directly get the pubic IP of the container that you have hosted.

Go to the EC2 instances and select the container which has the website or the service.

After that, copy the IPv4 Public IP which should display the content of the website. This will be the content directly displayed from the domain that you are going to enter.

First, check whether the IP address is serving the content that you wish to display from the your domain. If its a website, you can directly enter the domain on the web address of a Browser. If its a service you can change the host for the IP address and invoke the service,

Create a Hosted Zone on Route53

A hosted zone is merely a name created by AWS which is quite same as the DNS zone file. It contains the records needed to manage the domain and subdomain along with different record types.

First, go to the Route53 from services and select Create Hosted Zone.

Select Rout53
Select Create hosted zone to Host GoDaddy domain with AWS EC2

After that, enter your domain name, without www or http or any other tags as the parent domain for the hosted zone and create the zone. Make sure to select Public Hosted Zone as the type of zone.

After creating the zone, you may see two entries. These entries are needed later to update the nameservers of the GoDaddy DNS.

Update domain name records on Hosted Zone

Click on Create Record Set button to enter the IP to the hosted zone.

  1. Select the Type to A record
  2. Keep the name blank
  3. Keep alias No
  4. Add the value to the public IP you copied from the EC2.
  5. Keep routing policy Simple Routing.

Create the record after entering the details properly.

enter public IP for A record

We need to create the www.abc.com subdomain entries also to work.

  1. Add www to the Name.
  2. Select Yes for Alias
  3. Enter the domain you had entered as the domain for Alias Target
  4. Select Routing Policy as Simple.

Create the record and www.yourdomain.com should also redirect.

Update name servers on GoDaddy for discovery to host GoDaddy domain with AWS EC2

Select Manage Zones from the DNS dropdown and select your domain after searching.

Select GoDaddy domain for the DNS

Select change nameservers from the Nameservers. This will contain two default nameservers. You can remove them and enter the new ones.

Change nameservers

Enter the NS records from the hosted zone you had created previously. Add new rows if necessary since usually, it has four records.

AWS Nameservers

You don’t have to enter the last dot of each Nameserver record when creating the entry.

Updated nameservers

That’s it! After a while, your EC2 container or the service provided from the IP should be accessible with the domain you had entered.

Also, check out following to get an understanding of NPM and NPX

Create React App Using npx

Java 13 (JDK 13) -The New Features
01. Javascript Guide – Introduction to Javascript
Coder Kai
A humble developer
aws domain ec2 godaddy host hosting nameservers route53

Related articles

Copy files from S3 to PostgreSQL RDS
How to copy files from…
AWS Ingress ALB with EKS
How to use AWS Ingress…
Frequent errors with Apollo Client
Query definition in GraphQL and…
GraphQL Web App with AWS Amplify and IAM Authentication
AppSync GraphQL Web App with…
Query records for a list of keys in GraphQL
Query records for a list…
aws graphql with lambda
How to mutate AWS GraphQL…
Use AWS GraphQL for react native app
Use AWS GraphQL for React…
  • Pingback: node.js - Register GoDaddy Domain with AWS ec2 instance - Code Utility - Code Utility()

  • Pingback: Register GoDaddy Domain with AWS ec2 instance()

  • Pingback: URL()

Categories

  • android 3
  • Apollo Client 1
  • AWS 8
    • AppSync 5
    • EC2 1
    • EKS 1
    • Route53 1
    • S3 1
  • AWS Amplify 1
  • Chakra UI 1
  • Docker 1
  • Embedded 1
  • EmberJS 1
  • FCM 1
  • Godaddy 1
  • GraphQL 3
  • ios 1
  • Jasper 1
  • Java 10
    • Java 11 1
    • Java 14 1
  • JavaEE 2
  • JavaScript 39
    • Express.js 4
    • Javascript Guide 7
    • Node.js 3
    • react-native 4
    • React.js 17
    • Typescript 1
  • Kubernetes 1
  • machine learning 1
  • Maven 2
  • OCaml 3
  • PostgreSQL 1
  • Python 2
  • react-native 4
  • ReactJS 3
  • sass 1
  • Server 6
  • spark 1
  • Terraform 2
  • Ubuntu 4
  • Uncategorized 1
  • webpack 2

Recent Comments

  • binance register on Chakra UI Animations
  • binance account on SSL Websocket proxy with Nginx for Graphql Subscriptions
  • Binance Pag-signup on How to fetch data with useEffect

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

  • October 2022 3
  • September 2022 7
  • May 2022 1
  • December 2021 1
  • August 2021 1
  • July 2021 6
  • June 2021 3
  • February 2021 1
  • July 2020 1
  • December 2019 5
  • November 2019 6
  • October 2019 3
  • August 2019 1
  • March 2019 1
  • February 2019 1
  • January 2019 2
  • December 2018 1
  • September 2018 2
  • August 2018 1
  • June 2018 1
  • February 2018 1
  • November 2017 2
  • October 2017 5
  • September 2017 1
  • June 2017 1
  • May 2017 10
Sandny Blog space
Theme by Colorlib Powered by WordPress