sigma Hosting Logo
Sigma Hosting
Play Video

How to use domain provider’s (GoDaddy/Namecheap) Email Hosting with Route53?

This episode is about using subdomain delegation with Route53. Please find the written version of this video at

★ Blog Post ★

★ Choosing between alias and non-alias records ★

Welcome to my channel on AWS Cloud Computing. I create videos on serverless architectures, containerization technologies, cloud-native databases, machine learning services, web and mobile development, and AWS Certifications.

💖 Become a Patron: Show Support 💖

★ Recommended playlists ★

AWS Cloud Workshop ✅

Artificial Intelligence and Machine Learning ✅

Building a complete app with AWS Amplify ✅

Building an E-Commerce Application with AWS ✅

AWS AppSync Series ✅

Building intelligent chatbot series ✅

Containers on AWS ✅

Serverless Application Development ✅

Blog –

#Extenal #DNS #Route53

hello everyone welcome to this episode on how you can actually delegate a sub-domain to route 53 so this is going to be a very quick video because I got a couple of questions with this regard now before that let me quickly talk about the problem that we have and what is the solution now when you actually develop an web application on AWS it could be a s3 static web application or you might be using Beanstalk to host your Windows application or is co application or PHP whatever the application that you host on AWS when you are going on to production you probably want to attach a custom domain for that right so what we basically do then is to go to route 53 right you can find the route 53 so route 53 is the DNS service for AWS you can easily go to route 53 and then go to hosted zones or you can click here and then you will start creating a hosted song for your site now this
hosted zone name is pretty much the same as your domain that you have already bought for your application for example let’s say you have bought an domain let’s call it right and and since this is publicly we are accessible so you set it as a public hosted zone and you create hostess zone right now there’s an error for this example come let me add a different one let’s say hello world dot com right and then you go ahead and create it
so when you create it it’s gonna create an hostage zone for you there you go and it’s going to give you some name server records now do you see a name server records now these name server records are used to do the DNS query resolution for any DNS queries for your website so it could be hello world com it could be a subdomain like cap dot hello world dot com and so on so when you get those requests name servers are used to convert those web
addresses which is readable for the human into an IP address so that is basically what name servers so in order to get that thing actually working with your custom domain you need to go to your domain provider now a W is also from route 53 you can register a domain but if you have registered a domain using a different provider for example I have registered domain here in right so I bought this domain called AWS learner dot online
right oh this could be GoDaddy or any other domain registrar where you registered your domain so what you basically have to do here is to go into your domain and DNS settings and you know you will see a section for you to add custom DNS so you can click here custom DNS and then you can replace the route 53 hostage zone name servers here you can copy these name servers one by one can copy here and paste this one and again you will copy the second
one and you’re going to paste the second one at additional name servers and similarly you will add all this for name servers so what then happens is all the queries for this particular domain AWS learner’s dot online will be resolved by the route v written a name servers right now this is actually the recommended way but there’s a small problem if you actually have configured let’s say a email server let’s say with namecheap com so you can like
configure your email like I think this is the one oh if there is an application that is already running outside AWS let’s say maybe a different sub domain www start online maybe that is pointing to your product website which is maybe not running in AWS so in these cases when you replace the AWS hosted zone name servers for your parent domain which I showed you earlier using custom domain DNS here those application will not work your email server
so it’s not going to work or you or any other application that is outside AWS will not work so how do we tackle this issue now there are multiple ways now one of the ways is URL forwarding and you can easily set up URL forwarding you can say if the domain name is f dot AWS Learner’s dot online forward it to maybe to your beanstalk environment in point or Beanstalk application end point you can do that easily with URL forwarding and URL forwarding
supports both masking as well so that means it is not going to change the original URL that the user have entered so that is called you know masking but this masking is not really recommended by Google and Google search so Google is going to be scurries those URL forwarding with masking and one other way is to you can set up a cname DNS record for example you can go to advanced DNS in and you can create a new DNS record here and I
can create a cname record there you go this is a cname and I can say if it is up right that means AB dot aw honest com I can point this to my AWS resources endpoint for example Beanstalk environment or the application endpoint right now this is really a good solution but I am going to suggest an even better solution for this which is called subdomain delegation right now imagine I have a beanstalk application running in AWS right now let me first
take my example hosted sone deleted ok delete this austere sone hello world ok so I’ll go to Beanstalk ok now in Beanstalk I have this web app running right so if I click on to this now this is the URL or the end point for my Beanstalk website I’ll copy this like hit enter there you go so I have an application running on Beanstalk but do you see the URL is the Beanstalk URL which is not user friendly so I want to replace this with AB dot
aw waste learner’s dot on line now I’m not going to hit tender because it’s not going to show this webpage since we haven’t set it up yet so this is what I want to do like if I type F dot aw online this Beanstalk environment should load but I already have let’s assume AWS learner doctor online already have an email server attached or running using Namecheap so I can’t like replace the entire name service now let me delete this one which I don’t
need okay so how am I going to do this so first of all I need to create a hostage zone in AWS route 53 so I’ll go to host her soul and I go to click create holstered zone and this host her own name should exactly match my domain name that is aw Stannis calm right you can type here don’t type this name because you have to type your own DNS domain name and click create so I have already created it so this is the one AWS learn about online and then
you go into that and then you will find the name server records here so then what I’m going to do here is I will go to my domain register which is Namecheap and I go to advanced DNS settings and instead of an cname record I’m going to create a name server record here in NASH record now even in GoDaddy or any other providers and they for the most part they support name servers so in this case I can type the sub domain the prefix part in this case
I want to say AB dot aw standard lines or the host is app and then I have to replace the name service that I have here so I’m gonna copy one of that and paste it and add that right and I’ll add another name server record and next record so it is for the same host and I will copy the second one and it and say we similarly I will add the other two as well okay now I added this name server records only to my sub domain you see only to this upload
AWS learner’s dot online sub domain right everything else including my apex daemon domain or the parent domain are using the name chip comm name service so my email service will still work as usual but if someone type in the domain name upload aw sternest online that will use the name servers from AWS now this gives me a lot of good benefits now I can actually use Elias record which is specific DNS records for AWS so I’m going to create a create
record set so I will match the domain or the sub domain which is AB dot aw slowness comm then I will pick ipv4 address then I select Elias yes now this is a specific DNS record for AWS and when we are using Elias DNS records a W is actually not going to charge you for DNS queries which is a really good one right and there are the benefits for last records as well I’ll post a link to the documentation so you can look at that but here I’m going to
go ahead and pick the Elias record or the Elias endpoint for my beanstalk environment which is this one also click create there go now it is properly connected so we need to wait maybe like maximum of 48 hours until this DNS propagation happens and once it is completed I technically should be able to load my Beanstalk web application using this ab dot AWS learned online let me just try it not sure if it works there you go it it actually resolved
now furthermore I can attach ACM certificates for this AB dot a SS turned out online this sub domain and enable HTTPS or TLS and the best part is my mail service will still work now let me show you one thing real quickly now if I go ahead and replace F dot www dot now this query is going to resolve with namecheap name service so if I hit enter I should probably see the default message for a path domain there you go so only my app subdomain is
resolved from AWS name service ok so this what I want to show you guys I hope this will be helpful so if you like these videos please make sure you subscribe so you will be notified as soon as I release another video thanks guys have a good day