How to point a domain name to an IP address (DNS A record example)
Tutorial Hosting
Hey everyone this is Tony teaches Tech I’m Tony and in this video I’m going to show you how to point a domain name to an IP address and you know this there’s so many different hosting providers out there and domain name registrars but this as long as you understand the
Concepts in this video the same concept will apply no matter where you bought your domain name from and where your hosting is from and the key thing that I want to communicate to you guys is that you do not need to buy your domain name from the same company that you’re
Hosting your website from and I’m going to prove that to you in this video the way you you accomplish buying your domain name somewhere else from where you’re hosting is with DNS records okay specifically a dnsa record and in this video I’m going to show you how to set
That up for both an Apache and an nginx website and even if you’re not even if you don’t know what a patching nginx means uh this video will still help you understand how to point a domain name to an IP address so let’s go ahead and go
Ahead and get on into the tutorial here okay so I have two websites at IP addresses this Apache website at this IP address ending in 159 and over here in this other tab an nginx website ending in this IP address 205 okay and the goal
By the end of this video is to back over here I have a domain name with dreamhost okay let me show you that in my domains here I want to point one of my dream host domain names specifically Tony where is it I’m scrolling too fast bear with me I
Want to point tonyflorida dot me to this IP address so instead of going to the AP address you go to Tony fleer.me and then we see this show up and over here with Google domains I want to have careerquitter.com point to this IP address so instead of you know typing
The IP address we go to careerquitter.com and this same website shows up so let me show you right now if we go to tonyflorida.me there is no website hosted here there’s there’s nothing at this point right and the same thing for um career c-a-r-e careerquitter.com spell that wrong q-u-i-t-t-e-r.com uh there’s also no
Website hosted here so let me show you how to set up your dnsa records so that we can point those domain names to those IP addresses in dreamhost again remember remember this will work for GoDaddy this will work for namecheap any of your hosting providers out there you just need to
Find the DNS section for your domain name so for me that’s right here here’s my domain name and here’s the DNS section what I want to do in here is add an a DNS record okay the DNS record is going to be of type A there’s multiple
Different types of DNS records but we want an a record so let’s add an a record the host the convention for for this is the at symbol um to as a shorthand for the actual domain name and that’s going to point to that IP address so let me copy this IP
Address paste it here we don’t want we just want the numbers and the dots so tonyflorida.me is going to point to this IP address so we will do one more record as well we want www.tonyflorida.me to point to that same IP address and we’ll get rid of all that
Other uh junk just we have the IP address okay so let’s add those records and they’re doing the updates and while that’s happening let me show you something cool so if you go to dnschecker.org and we go to tonyflorida.me look at the a record for tonyfluerta.me there are no the DNS
Servers out there around the world don’t know about that yet because dreamhost is still processing our updates so we’ll keep that in mind we’ll come back and look at this and see if the status changes but in the meantime while that’s happening let’s do the same exact thing
But for just to show you a different example for Google domains different different different hosting or different uh domain name register but same process Okay so I’m going to find the domain name that we want to forward or not forward to um to map to an IP address so career
Twitter.com that’s the one we want to work with here so let’s click on that find the DNS settings here they are right here on the left and we want to go down to the custom resource records section in this case so same thing as before we want to take the bare domain
Name which is careercoder.com we’ll use the at symbol for the shorthand and point it to an IP address and that IP address is this one right here the one ending in 205 so let’s put that in here get rid of the everything else except for the IP
Address so we’ll add that and then we want to do the same thing for www.careerquitter.com and pointing to the same exact IP address so we’ll add that and you know you see this message up here changes saved this could take up to 48 hours and and Mike
In my experience in the past this could be anywhere from you know instantaneously pretty much to um you know a few hours maybe half a day at most but yeah for the most part you’re not going to be waiting that long at least in my experience
Okay so let’s let’s check on the status here so dreamhost is still processing the changes I did not expect that to take that long but we’ll bear with it let’s do the DNS checker for careerquitter.com see if the a record has been updated and it’s looking pretty good so most of
The DNS servers around the world have seen that update so now careerquitter.com is pointing that to that IP address for most of the DNS servers and I think it’s probably fair enough at this point to test it out so let’s go to career quitter .com
And that does not work but you might run into this too because there’s um and I actually spelled it wrong c-a-r-e-r quitter okay there we go I was just gonna say if if you see something like that happen it could be a caching issue so what I
Recommend in those cases are to open up a guest window or an incognito window to avoid all of those caching issues so um we’re good to go though so careercreator.com now points to the same exact website that we saw at the IP address before and there’s really nothing well there’s one other thing
Which is like a slightly Advanced technical topic that you might want to do if you are working at the web server level but if not you’re pretty much good to go at this point uh dream host is still processing the update so let me let me move forward and show you
Um if you are working with Apache and nginx at that level uh how to complete this this uh this update for your domain name so uh what I do have is two uh terminal sessions here um and I’m going to log into those servers let me let me make it the point
Clear here again if you are just here to you know learn about dnsa records this is probably more than you need to know so you’re probably good to go at this point but if you do want to learn about Apache and nginx and how to configure uh
Your your server with the domain name then please continue watching so let’s log into the server that has 205.205 that’s the nginx server here and what we’re going to do is go into the Etc nginx sites available directory which is where my configuration file is for this
Website and really all we’re going to do in here is edit that configuration file and change the server name from whatever it is right now to career quitter.com we’ll save that and do a system CTL restart nginx and now from the perspective of the web server it knows what type of request
When when it sees requests from careercoder.com coming into the web server it knows explicitly how to handle that request and we’ll do the same thing for Apache even though we’re still waiting for that to update we’ll log into the Apache server ending in.159 we’ll go into the ETC Apache
Directory apache2 directory and then same type of structure sites available in here we want to edit the your your configuration file for me it’s the default zero zero zero Dash default configuration file and here um this is going to be server name and then it’s going to be um
We’re working with Tony Florida DOT me and then you can also do and I should have showed you this on nginx server alias it’s going to be www.tony Florida DOT me so we’ll save that we’ll do a system CTL restart Apache 2. okay and just to be explicit let’s go
Back into this one on nginx side if you wanted to add the www version here you do www on the same line dot career quitter.com save that we’ll restart that again let’s check on the status here it’s still processing that update so let me pause the video here when this finishes we can
Verify that tonyflorida.me is pointing to the correct IP address okay guys I’m back about 15 minutes later and the DNS has been set up on dreamhost for tonyflure.me as you can see here let’s go ahead and check that out with the DNS Checker first and uh while we’re in here let’s
Um let’s see how the DNS propagation has progressed since last time so for careercoded.com so let’s see if we get more green check marks and we do pretty much yeah actually across the board all the DNS servers has been updated for careercoder.com to point to that IP address let’s check it out for
Tonyflorida.me for the a record and we are most of the way there so let’s see uh if we’d now go to before this was the IP address that we had to go to to load the Apache website let’s see if we can go to tonyfllorida.me and see that website
This could be a DNS issue this could be a caching issue let’s open up a guest window to see if that helps the situation so Tony Florida DOT me uh that did not help oh there there we go we’re here so it did help um it was most likely a local DNS
Caching issue but now we have Tony fleer.me pointed to the website that was previously just the IP address okay so yeah this this this will take a while I guess for the the cash to expire and then to work on this but it should work in a private window or a guest window
Um guys if you have any questions about DNS a records in pointing domain names to IP addresses let me know in the comments below I’ll do my best to help you out if you got some value out of this video give it a thumbs up subscribe
For more videos like this from me in the future if you do I’ll see you in the next one Thank you
Learn how to point a domain name to the IP address of a VPS or server using a DNS A record. Although I'm using Linode in this video, the same concepts apply to GoDaddy, Bluehost, Namecheap, and pretty much any other hosting provider. For more information, visit https://tonyteaches.tech. Check out my vlog channel @TonyFlorida #a #dns
#point #domain #address #DNS #record
https://i.ytimg.com/vi/QcNBLSSn8Vg/hqdefault.jpg