1 00:00:03,600 --> 00:00:09,660 Now that we have our name servers pointing to Digital Ocean we need to configure our DNS zone file so 2 00:00:09,660 --> 00:00:13,910 that our domain points to the correct server to do so. 3 00:00:14,040 --> 00:00:20,010 If you haven't already go back to the Digital Ocean admin panel and you're going to click on the networking 4 00:00:20,010 --> 00:00:20,300 link 5 00:00:23,980 --> 00:00:30,100 under the heading AD domain you're going to type in the first domain name you'd like to host on your 6 00:00:30,100 --> 00:00:33,220 droplet makeshift from the menu over here. 7 00:00:33,250 --> 00:00:35,110 You select the server you just created 8 00:00:41,170 --> 00:00:44,990 and then click Dumi. 9 00:00:45,120 --> 00:00:53,900 All we need to do now is add to a records that point to the IP address of our server one record will 10 00:00:53,900 --> 00:00:58,460 be for our domain name without the w w w prefix. 11 00:00:58,460 --> 00:01:02,790 The second will include the w w w prefix. 12 00:01:02,880 --> 00:01:07,820 So just go ahead and make sure you have a selected here. 13 00:01:09,460 --> 00:01:11,020 So typing in an at sign here 14 00:01:14,190 --> 00:01:15,480 and on the right side here. 15 00:01:15,510 --> 00:01:18,410 You're going to select the floating IP we created 16 00:01:21,610 --> 00:01:24,330 and hit create record. 17 00:01:24,330 --> 00:01:26,490 Now we're going to create another a record. 18 00:01:26,580 --> 00:01:32,600 So Type in W W W select the floating IP again. 19 00:01:34,320 --> 00:01:35,120 And create record 20 00:01:40,660 --> 00:01:44,460 now a separate DNS record is required for both domains. 21 00:01:44,500 --> 00:01:46,260 We finished this first domain. 22 00:01:46,270 --> 00:01:49,120 So let's go ahead and do this second domain the same way. 23 00:01:49,120 --> 00:01:51,160 So go back to networking 24 00:01:55,560 --> 00:02:00,130 type in the second domain. 25 00:02:00,310 --> 00:02:10,250 Select the server we just create it from the menu and hit domain. 26 00:02:10,560 --> 00:02:19,990 Create your first a record tip in the at sign again select the floating IP and create record 27 00:02:23,980 --> 00:02:33,640 now create the w w w record it will direct to the floating IP and create a record 28 00:02:36,970 --> 00:02:37,480 perfect. 29 00:02:37,480 --> 00:02:44,230 So now we have our two DNS zone files created for each of our domains. 30 00:02:44,230 --> 00:02:50,590 So with our name servers and DNS records now configured we can test to make sure that everything is 31 00:02:50,590 --> 00:02:51,260 working. 32 00:02:52,530 --> 00:02:59,610 Keep in mind that anytime you make changes to name servers it can take up to 48 hours for them to propagate. 33 00:02:59,640 --> 00:03:01,970 So if it doesn't work right away don't be alarmed. 34 00:03:02,770 --> 00:03:06,890 Just wait a day or so and try try again. 35 00:03:08,260 --> 00:03:12,800 You know if it doesn't work from that point forward then you know that there's probably some issue going 36 00:03:12,800 --> 00:03:15,010 on in your configuration somewhere 37 00:03:18,320 --> 00:03:20,980 OK so I'm going to go ahead and test the first domain name 38 00:03:27,250 --> 00:03:30,020 so you can see that it says this site can't be reached. 39 00:03:30,040 --> 00:03:35,010 That means that the changes have not propagated in the DNS system yet. 40 00:03:35,870 --> 00:03:40,890 There is a way to bypass this just to make sure that it is in fact working. 41 00:03:40,890 --> 00:03:42,600 And I'll show you that in just a second. 42 00:03:42,920 --> 00:03:45,390 But before I do that let me test the second domain 43 00:03:49,840 --> 00:03:54,280 and this time you can see that this domain is working correctly. 44 00:03:54,350 --> 00:03:56,140 So the second one is working. 45 00:03:56,440 --> 00:04:03,750 If you remember we created this DML page and placed it into the HDMI folder of our second domain. 46 00:04:03,760 --> 00:04:06,020 And so this one is working. 47 00:04:06,190 --> 00:04:09,440 The first one is still propagating. 48 00:04:09,690 --> 00:04:17,850 One way to bypass the DNS from propagating is to try to access your website through a proxy that has 49 00:04:17,850 --> 00:04:20,810 likely never visited your website before. 50 00:04:21,060 --> 00:04:29,790 I have been to the first domain earlier this week so that page or the IP associated with that page is 51 00:04:29,790 --> 00:04:36,600 likely still cached with my internet service provider or some local DNS service somewhere in my area. 52 00:04:37,080 --> 00:04:40,640 So what I'm going to do is I'm going to go to a free proxy service. 53 00:04:40,680 --> 00:04:44,490 If you just go to Google dot com and type in free web proxy 54 00:04:50,880 --> 00:04:55,020 and let's go ahead and enter the domain through this proxy 55 00:04:58,670 --> 00:05:05,180 because nobody from the Netherlands is likely visited this domain name it's not going to pull up a cached 56 00:05:05,210 --> 00:05:06,650 IP address. 57 00:05:06,920 --> 00:05:14,270 It's going to try to resolve the IP address using the new information the new name servers that we can 58 00:05:14,870 --> 00:05:18,270 that we configured with our domain name registrar. 59 00:05:18,290 --> 00:05:21,630 So hopefully this isn't too confusing for you. 60 00:05:21,650 --> 00:05:26,470 A simpler solution is to just wait a day or so and it'll start working for you. 61 00:05:26,570 --> 00:05:31,600 But if you want to you know sometimes you don't have that luxury of waiting. 62 00:05:31,610 --> 00:05:33,830 Or you can just test it on a proxy. 63 00:05:33,950 --> 00:05:39,920 And as long as it works on the proxy then you know for sure within a matter of hours it's going to start 64 00:05:39,920 --> 00:05:48,290 working in your area and just about everywhere where DNS systems are constantly rebuilding their the 65 00:05:48,280 --> 00:05:50,760 IP addresses attached to each domain. 66 00:05:55,890 --> 00:06:00,580 OK so you can see that through the proxy it did pull up the right page. 67 00:06:00,630 --> 00:06:06,060 So that means it connected to the correct IP address based on the name servers we'd set up with our 68 00:06:06,060 --> 00:06:07,350 domain registrar. 69 00:06:07,350 --> 00:06:13,530 So that means our web server is now pulling up separate pages in separate directories for each domain 70 00:06:13,530 --> 00:06:16,840 name that we're hosting on this server. 71 00:06:17,250 --> 00:06:22,600 And so we've accomplished the first part of what we set out to do in the next lesson. 72 00:06:22,620 --> 00:06:27,090 We're gonna be installing separate SSL certificates for each of these domains.