Jungletronics
Published in

Jungletronics

AWS — IP Plus DNS

How to Link Your Sub/Domain Name With Your AWS Instance Running Ubuntu — AWSSeries # Episode 03

In this post we will show you, from the very beginning, how to register a domain for your IoT project and redirect it to your Ubuntu instance, running in the cloud! this continues this previous post.

Hi, I’m from Brazil, and I register this domain here:

j3.blog.br
Fig 1. I register my domain for 3 years! This post follows a series. Init it here!

You have to search in your country which institution registers a domain officially.

Fine. Now come with me:

01#Step — As said, I just bought ownership for my domain(3 years);

j3.blog.br

02#Step — Go to your AWS Management Console and point it to this service:

route53 
Fig 2. Route53

03#Step — Click this button: Create hosted zone:

Fig 3. Create hosted zone

What is a Hosted Zone AWS?

A hosted zone is an Amazon Route 53 concept. A hosted zone is analogous to a traditional DNS zone file; it represents a collection of records that can be managed together, belonging to a single parent domain name. All resource record sets within a hosted zone must have the hosted zone’s domain name as a suffix. (from AWS FAQ)

04#Step — Config hosted zone like this:

Fig 4. Note that there is no www subdomain here. We leave it to record…Now Click this button:
.

05#Step — Now this screen opens showing us our DNS domain; Get each one of these address and transport it to your Registrar site (Registro.br):

Fig 5. AWS Route53 offers you DNS Servers Address (4 NSs)

06#Step — Now return to your Registrar site dashboard (https://registro.br/painel/) and save each of these addresses in your DNS (we will replace the local DNS with AWS DNS):

Fig 6. Click +DNS to add more DNS; Click Save Settings.

07#Step — From that point, we will have the propagation of the names of these servers pointing to your IP. It can usually last for hours … Wait for confirmation from your domain registrar.

08#Step — Now return to EC2, copy your IP Address:

Fig 7. Getting our Ubuntu instance IP address

09#Step —Now, open AWS Services>Route53:

Fig 8. Open Route53 Dashboard…
Fig 9. Select your hosted zone…
Fig 10. And Create a Record…
Fig 11. Note how I have set my parameters! Hit Create records button!

Now, when someone on the internet types www.j3.blog.br they will be redirected to this IP address.

We here could make a subdomain, like, iot.j3.blog.br, or mqtt.j3.blog.br, etc. It is up to you to choose one sub/domain that represents your project better!

Ready now, just wait for the propagation of the DNS name.

For the test, sometime later, just type:

www.j3.blog.br/index.php 

And should appear on our test page from the previous lesson:

Fig 12. Type this /index.php or…
Fig 13. by browsing www.j3.blog.br/index.html see the Apache welcome page! saying that your remote Ubuntu instance is up and running!

For more info please watch this video or read this post: )

For now, That is it!

In the next AWS Episode, it’s for real: LetsEcrypt!

Bye o/

Fig 14. Waiting for DNS propagation!
This process took from 14:00h of the day 04/01/2021 until .... not yet:/

\o/ PRO-PA-GA-TE\o/:

Ready: 16:57h 04/01/2021 (roughly 3 hours later)
Fig 15. Yeah! Check it out: type: www.j3.blog.br/index.html
Fig 16. That’s it! now type:www.j3.blog.br/index.php (See system time…)

Credits & References

Microgênios — Treinamento em Sistemas Embarcados — Microchip Regional Partner — Microchip Certified Brazilian Training Education Startup & a Simplício-owned enterprise o/

AWS Essentials — Learn from AWS technical instructors about the AWS Platform, global infrastructure, security, and the core services by Udemy

This course is delivered by actual AWS technical instructors who teach fundamental and advanced AWS courses around the globe. In this course, you will learn essential concepts of the AWS global infrastructure, platform, and core services, so that you can begin, or, continue your journey of growing your business using AWS Cloud technology. We encourage your participation on the discussion board and feel free to ask any questions about the course or AWS certification.

AWS Documentation by Amazon

Verify your SSL, TLS & Ciphers implementation By Chandan Kumar

Related Posts

00#Episode — AWS Essentials — Intro to AWS — AWSSeries

01#Episode — AWS — Login to Ubuntu 20 — Access Remote Ubuntu via PuTTY SSH Session — AWSSeries

02#Episode — AWS — LAMP — Prep our Remote Ubuntu to Run an MQTT Broker — AWSSeries

03#Episode — AWS — IP Plus DNS — How to Link Your Sub/Domain Name With Your AWS Instance Running Ubuntu — AWSSeries (this one)

04#Episode — AWS — LetsEncrypt — How To Installing the TLS / SSL LetsEncrypt Certificate on Remote Ubuntu Server 20.04 — AWSSeries

05#Episode — Soon. Be tuned!:)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
J3

J3

Hi, Guys o/ I am J3! I am just a hobby-dev, playing around with Python, Django, Lego, Arduino, Raspy, PIC, AI… Welcome! Join us!