Configuring DNS with AWS Route53 Tutorial | How to link Freenom domain to AWS EC2 using Route 53

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome to the new session uh where you will learn about dns uh dns setup in a real environment using two different uh thing right one is a freenom and aw053 so before that i would like to uh tell you that this specific session help you to understand the two concepts one is a networking concept in terms of dns and the same dns concept you can understand with the help of cloud platform too right so free gnome is a basically like uh godaddy it's a domain name service provider right or we can say cloudflare right and uh ew support pp3 is a one dns service of aws cloud platform which is a highly scalable and reliable cloud dns web service and it will help like many developers and businesses to redirect to redirect their traffic right uh to the internet application by translating like their name host name to ip addresses right so for example if you have a ip address of your server which is like 192.16.0 dot right so no one will remember this ip address every time but yes if you have a specific name same like your phone book in your mobile phone right like contact details so you can store your mobile number with some specific name so you can easily remember the name instead of number right so same thing over here as well so root 53 will help you to map your ip address with the domain name right so when you type www.xyz.com it will help you to find out the ip address and redirect your request to the end service root 53 uh will also effectively connect user request to the infrastructure which is created in aws like ec2 instance or we can say elastic load balancer uh root 53 also connect s3 bucket elastic bean stock as well you can redirect your traffic right so there are so many things you can configure in a root 53 the root 53 i can say is also similar to like godaddy and free name free name free norm right so where you can also host register your domain right and you can also redirect our request to the different platform as well so let me show you the flow in this specific section right so here you can see first of all you are here you are going to access your laptop right and through laptop you are going to type www.crazyclaudium.tk this is the domain which i was issued from free no right so here you can see this is the free no right freedom will give you by default some ns records right which i'm going to change later on and then uh we are going to use the service of root 53 so i'm going to register my domain as a public hosted zone in aws root 53 right so when i will register my domain to uh root 53 as a public hosted zone public hosted zone i will give me the four different dns sorry name server record right so in that specific case in that specific case i am going to update that for ns record that for ns record from here to the free nodes okay so whenever you type this domain in your laptop or desktop the request redirect to freeno because ultimately freedom issue my domain and free gnome pointed to this 4 ns record and with the help of this 4ns record you will be redirected on a 53 right and here i have uh you can see i have added one entry it's called a record that i will discuss later on once we create ec2 instance over here right and here you can see once you register you have by default these two records ns record and so record so is the state of authority so actually different record used for different purpose so let me uh give you the quick flow when you type your dns or any uh domain name in your browser right so first of all your request goes to the local dns right or we can say default dns server if you are in a private network uh then your request first go to the your default dns server default dns forwarding to the local dns service provider or local isp right local isp uh forward your request to the specific root server right but this flow is only execute when your uh like for example local dns service provider will not resolve your query like mapping from uh domain to ip address then and then it will redirect your request to the isp right your isp and isp redirect your request to root server right again if root server will not aware about your domain and ip address it will redirect to top level domains right it is called tld and again if top level domain will not aware about this right it will not give you the response like i don't know it will help you to uh redirect your request to the proper server right so that is nothing but authority server right so authoritative server have all the informations regarding the domains right so ultimately you will get your response back right so this is how your uh dns query work all right so then after uh see i have already added one record so in this specific session we are going to learn this how to create this server and how to add this record in a root 53 okay then your machine is send request with the help of ip address and you can get back response okay so we are going to first create this server on aws right yes so here you can see i have already opened the few tabs right so let me go inside the ec2 see guys when you click over here uh you will find the list of major services sections right for that you can watch my uh previous videos which i have already uh published that is introduction to aws management console where you will learn about all the basic things which you have to take care when you start working with aws right so i have explained all the things related to console billing and all that so let's go inside okay uh one more thing uh i'm not going to explain each and every single stuff regarding the ec2 because that detail explanation of all the steps of ec2 instance i have explained in my another video here you can see how to launch an amazon linux ec2 machines right so here i have i already explained all the steps in detail so i i will mention that url in us the description section so you can uh follow that if you want to understand all steps in detail so here i just quickly follow the few steps see here is the list of operating system or you can say ami it's called amazon machine image you have to follow the six seven different steps to create your virtual machine on aws platform so here i'm going to select linux right i'm going to select everything by default because this is called instance type you will find different list of instance time i have already explained this all details in my previous video where you can learn the basic things about ec2 right yes so here you will find the configuration details right you don't need to do anything just simply go ahead right next is a storage by default you will get 8 gb you can consider it as a root volume that is not same like your c drive right um if you want to add you can add it from this button right so simply go next this is the tag so you can assign same like your social media tag this is my demo dns server right or we can say demo dns underscore wave server right security group so this is also important i have also explained this this is one kind of firewall it is the state full firewall i can say right you can get this all information in details in my previous video but here i'm going to use simple ssh because we have used linux operating system so by default there is ssh protocol is there but here i am also going to add http as well because later on we have to redirect our request on a 8-0 right so click on review when you click on launch you will get this kind of pop-up where you have to create a like key pair which help you to access your key later on right so here i'm going to use dns download key pair you will get dot m file launch instance so you can do uh this thing uh two way right so the same thing i will show you again i am going to launch the another dns server all right so let me connect this first so you will get public ip address so just copy this now you can access your linux console two ways right either from puti and there are so many other terminals uh access available you can also do that or here is the option it's called cloud cell all right so you can click on it and you can also connect to it but here i'm going to use uh the mobox stream right so through which you can connect i'm going to click on new session ssh host name i'm going to type ip address all right port 22 go in advance ssh right use private key because we have a pam key click on this go to the download part download sections right and this is my key open okay let me wait for two by two cross check is done or not it is still in the initializing part right meanwhile let me open fredo uh click on sign in i have already uh created so i'm not going to use this anyway let me use this itself let me go inside my domain yes so i have already issued this crazy cloudin.tk right so if you want to create your own you have to find out and it's a similar like this so if you want to register new domain you just go out right you just type whatever domain name you want right so here you can see just type whatever name you want like students right or we can say like leader right so just check if it is available then you will get it if it is not available then you will not get it you can also type like uh see leader is available so the leader.gq is available so we have to click over here right if it is available then you have to check out right you will get this domain in your domain list okay continue right so you can go inside refresh this you might get it because frequently it will throw out right so right now i have a two domain right i don't think so that domain uh was issued right so sometime you will find this kind of query as well if you have issue but still you will not find it so you have to try two three times right so let's check over here so it is still initializing once you will get two cross two check over here you can uh run this right let me try login as a ec2 hyphen user yes now i mean see i'm in the console of uh that instance right so i'm inside of this instance okay now here i'm going to deploy one index.html file right so first of all you have to type ls see right so there is a no file inside so first of all i will switch my user i more right sudo sue right you will be in the redirect to this now you are inside this now let's go cd slash where that dot dot let me check the directory proper it is the same thing where we have to deploy yes right so first of all before that we have to install httpd as well i have already uh created a list of thing which we need to execute here right so first of all um update hyphen y right so it will help you to update your uh existing version update and upgrade both are different things so please keep in mind this is only for operating so whatever the libraries and the things are updated you will get it right now it is updated now let's install httpd server right vm install httpd right iphone y it means you don't require to manually give them your kind of input it is done now let's check whether it is working or not service httpd first of all we have to start it right so it is working now let's check the configuration config on right so it is working and now let's add index.html file so to add index.html we have uh to go in a specific directory so whenever you create ec2 instance or ubuntu there is one specific directory where you have to add your index or html file so when you will type your domain name your request will redirect to the specific index.html okay so let's go inside cd bar now you will find html in this directory you have to create see there is no file such a file over here so what i will do is that nano space index dot html right and here i will type this code right i'm not going to waste time so simply paste it over here and i will type hello everyone this is the simple demo of dns root 53 okay ctrl x press yes enter done okay now let's go to the console just copy this ip address and let's see it is working or not yes it is working see hello everyone this is oh this is my spelling mistake saying hurry i just swipe the ins right so it's a domain name uh or we can say demo of dns root 53 right now uh let's start with the root 53 right so let's first of all open this so root 53 is a part of networking service so you will find in a networking and content delivery section right so click on this you will be redirected on a route 53 console right so here you can see uh here you are seeing the error that's don't worry about it because i have some limited access in this account so i'm going to create one hosted zone over here right where i'm going to register this domain right it's called crazy clouding again i hope it is worked out i have to re-login it click on this i have used another account right because this account have a domain which is already issued or you can say go inside when it's domain right so just copy paste this right and you have to insert name over here right so i'm going to create hosted public hosted zone right in a root 53 service right so just click on it and as i have told you that you will get two default records see ns record and so record right so now we have to update these records on a free node ns record right we have to update it right so what you have to do is that you have to change or in a management section you have option it's called name servers click on that i have already added right so i'm going to click on default now i'm going to replace this all because earlier i have used this domain for my root 53 itself right so i'm going to remove this existing one right and i'm going to add my all the domains ns record domains right change name server 709 sometime it will quickly change and sometime it may take some time to reflect your name server record over there right now it is done now so let's create a record here so now click on create record option right so here you will find the list of record types right so right now you just consider a record and called a record right a is for ipv4 and called it's for ipv6 right so let's consider a record so when you select type of record a the value must be ip address c when you select four time a then it is ipv6 right so when you select a you have to insert ipv4 now let's copy this ip address and add it over here right you don't need to use http or any columns simply you have to insert ipv okay this is dtr value you can set 300 second you can set default one ah sorry default 300 seconds and you can also reduce that okay simply now create record see now this is the same screen which i have show you in that the slide see this one right now our domain is registered let's go and check right so what's our domain name crazy cloudin.tk right so let me type here and type it yes see it is working now right but if you type www dot crazy cloudant it will not work it will not be right okay why it is not working because we have not added www.crazycloudin.tkrecode in a root 53 public hosted zone right so here you have to click on create record you have to type www right here you have to add ap address right and before 6 60 seconds click on create your record has been added okay now you just open your new tab type www dot crazy cloudian dot tk see it is now available right so see if you want to uh redirect with www you have to add it manually otherwise you won't be allowed to redirect with www with crazycloudin.tk right so uh this is all about redirect to uh or even if you want to use some cname or alias right that is also you can do right so cname is point hostname to any other host name that for example uh app.xyz.com to app dot or we can say mobile.abc.com right so cname only for non-root domains okay so you can use cname only for non-root domain so aws resources expose an aws host name for example if you want to redirect your load balancer endpoint right uh with your our my app or you can say app.a xyz.com then you can use cname right but what exactly alias name is so here uh when you click on create record right you will get different type of option right so when you click on a cname as i have told you that you can redirect or you can resolve two different domain like app.abc.com to mobile.xyz.com right so this is two different domain right same way if you have alias you have to enable over here see when you enable alias option you will get one list or menu see right drop down menu and here these all end points or redirection at the server that is only in aws right so point alias point host name to aws resources only right so app.xyz.com to write um like xyz dot or you can say mobile.amazonaws.com right so alias record work for root domain and non-root domain both so what is root domain root domain it's like amazon.com or aws amazon.com right and this is completely free of charge and you can also use uh other features like you can check health as well right using the alias record okay so this is the difference right i will cover uh some advanced topic uh regarding the route 53 right in my uh upcoming sessions dedicated to poc of aws and uh specifically cloud practitioner hands-on uh specific player track right so here this tutorial is only for to understand the dns concept which i have dedicatedly designed for the student those who are uh start learning regarding the dns with packet research and later on if they want to map with the real example or real environment then they can use it if you want to understand more detail about uh aws stuff and some basic services please follow my channel and you can also get so many uh detailed explanations about the basic services like storage networking compute and all that okay thank you so much uh keep watching uh spp underscore crazy clouding right and you will get so many hands-on stuff and this is really helpful to crack uh any kind of certification exams on aws cloud platform right and this is really helpful right so if you have any query feel free to comment right thank you
Info
Channel: AWSCloudians
Views: 635
Rating: undefined out of 5
Keywords: aws, aws route 53, route53, dns, DNS, frenom, ec2, aws ec2, networking, network, domain name system, domain, elastic compute cloud, amazon web services, cloud, computing, cloud computing, AWS Route 53 Domain Name Setup
Id: 1UyaaEC1YGg
Channel Id: undefined
Length: 25min 52sec (1552 seconds)
Published: Wed Aug 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.