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:
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);
02#Step — Go to your AWS Management Console and point it to this service:
03#Step — Click this button: 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:
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):
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):
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:
09#Step —Now, open AWS Services>Route53:
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:
And should appear on our test page from the previous lesson:
For now, That is it!
In the next AWS Episode, it’s for real: LetsEcrypt!
This process took from 14:00h of the day 04/01/2021 until .... not yet:/
Ready: 16:57h 04/01/2021 (roughly 3 hours later)
Credits & References
Microgênios — Treinamento em Sistemas Embarcados — Microchip Regional Partner — Microchip Certified Brazilian Training Education Startup & a Simplício-owned enterprise o/
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
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!:)