02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Adding one more a Record

Adding one more a Record

Video Transcript

00:00All right, so welcome back.
00:01Let's continue where we left off.
00:03So when we left off, everything was configured.
00:05We were just waiting for our site to go live.
00:08Now we're not done.
00:09I wanted to show you a few steps
00:10and I also kind of forgot something.
00:13So if I try to go now to my 10.US without the www,
00:17everything's working exactly the way
00:19we would hope for it to work.
00:21But if we go to the www.my10.US,
00:24you'll suddenly see that it's not working.
00:27Now there's two reasons for this issue.
00:28The one is that we never define
00:30that subdirectory www to actually be active.
00:34And it really just depends on your service provider,
00:37in our case our DNS provider,
00:39that I wanna make sure also not only am I adding that host,
00:42that app, which is basically the regular host,
00:45what I wanna do is I wanna also add the www.
00:48So I'm gonna add a new record.
00:50And when I add a new record,
00:52I'm gonna make sure I'm adding a record.
00:55And then for the host itself,
00:56I'm gonna type that www
00:59because that's the host that we want it to be.
01:00And again, I'm not gonna give it an hour,
01:02I want it to be every 10 minutes.
01:04So to do that, I'm gonna type your 600
01:06and I'm gonna click on finish.
01:08So now it's gonna create that record
01:10and I'm gonna also save it.
01:12Now that I have it saved,
01:14it could take up to 24 hours, up to 48 hours,
01:17but it shouldn't take that long.
01:19And once, probably within X amount of time,
01:24and by the way, if you're wondering
01:25why could it take that long,
01:27it's not that it takes GoDaddy or the DNS provider
01:30to update it that, because they update it immediately.
01:33It's when you hit the server from your network,
01:36your network caches the status of that server.
01:40So when you set it every 10 minutes,
01:43you're basically telling internet providers out there,
01:45check to see if the site is still available
01:47and nothing changed here every 10 minutes.
01:50If you say it once every 24 hours,
01:52then it's gonna take it 24 hours
01:54to come back and check it again.
01:56So it probably, if I click on refresh now,
01:58we're not gonna see anything,
01:59because locally, our server, our internet connection,
02:03configured and saw, oh, okay, there's no connection here.
02:06You can always try to grab your cell phone for a minute
02:09and just double check and triple check
02:11and make sure that it works,
02:12because you're checking on a different internet provider
02:14if you haven't tried it on that network before.
02:16And if not, you're gonna have to stop
02:18and freeze for a little bit
02:19until it will work for you again.
02:22All right, so I let some time pass
02:23and you can see that now our www works
02:26and also the my 10.US work.
02:28And obviously we have a problem here
02:30is because we kind of wanna have it go one way or the other.
02:34We don't want our server to automatically to be the same
02:37because it makes it look like we have two sites
02:40and that could be bad for SEO as well.
02:42So we wanna redirect all the traffic or to the www
02:46or we wanna redirect it to without it.
02:48And that's what we're gonna talk about in the next video.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!