1
00:00:00,450 --> 00:00:07,860
Here we are going to link our apache web server with DNS server that is running on our GoDaddy

2
00:00:07,860 --> 00:00:09,660
account in my case.

3
00:00:09,960 --> 00:00:16,500
I have got one domain already registered with the GoDaddy and the domain name is Ocloud.in.

4
00:00:16,860 --> 00:00:20,450
So we will try to relate that domain with our webserver.

5
00:00:20,490 --> 00:00:22,200
Again, these are optional videos.

6
00:00:22,230 --> 00:00:30,170
Please go into all these videos if you are comfortable with the how to use cloud, how to use DNS

7
00:00:30,180 --> 00:00:30,510
server.

8
00:00:30,780 --> 00:00:36,450
This is just for knowledge purposes because we were getting a lot of requests regarding little bit 

9
00:00:36,450 --> 00:00:44,040
show how the real time how to launch a realtime web server, then Link DNS domain name with all

10
00:00:44,040 --> 00:00:50,120
these things and launch a http site by using third party certificate.

11
00:00:50,490 --> 00:00:58,470
So now we are going to link our DNS domain name with the Apache Web server that is running, in our case.

12
00:00:58,470 --> 00:01:02,300
We have already noted down the IP address of that Web server.

13
00:01:02,520 --> 00:01:10,180
Now we want to relate that our domain name that we have got on our GoDaddy account with that.

14
00:01:10,560 --> 00:01:18,090
So basically the purpose of the DNS is when you request certain name like we want, then when somebody

15
00:01:18,090 --> 00:01:26,760
is going to say, ocloud.in the website gets open by using that name www.ocloud.in, our website

16
00:01:26,760 --> 00:01:27,660
should get open.

17
00:01:28,170 --> 00:01:31,200
So how we are going to do we will logged in.

18
00:01:31,200 --> 00:01:40,050
whatever account we have got on our Godaddy service, in your case, the domain name might

19
00:01:40,050 --> 00:01:44,600
be on some other service provider, so you have to follow their instructions.

20
00:01:45,090 --> 00:01:46,140
So then we will go.

21
00:01:46,890 --> 00:01:50,280
In my case, I have got a lot of domain registered.

22
00:01:50,550 --> 00:01:58,610
So in my case I'm interested in this domain that I'm owner of this ocloud.in and just for demonstration,

23
00:01:58,620 --> 00:02:03,390
purposes we are using after this what we are going to do.

24
00:02:03,600 --> 00:02:07,380
We are going to Click on Manage zone.

25
00:02:08,940 --> 00:02:13,800
In manage zone, you have to specify which zone you want to manage, of which domain.

26
00:02:14,040 --> 00:02:17,190
Again, we will try to search our ocloud.in.

27
00:02:18,060 --> 00:02:23,940
So when we are going to click in my case, initially it was showing three records.

28
00:02:24,540 --> 00:02:26,580
What are the three records?

29
00:02:27,040 --> 00:02:34,110
One is name server record, which gave you the information about the DNS server so this is the by default

30
00:02:34,110 --> 00:02:35,580
these records will be there.

31
00:02:36,300 --> 00:02:39,980
Then another name server, one start of authority record is there.

32
00:02:40,260 --> 00:02:41,210
So these are the record.

33
00:02:41,400 --> 00:02:49,560
please you should be comfortable with that DNS when we are using these terms so you can go to some

34
00:02:49,560 --> 00:02:52,500
tutorial or some other course where.

35
00:02:52,500 --> 00:02:59,080
DNS is properly explained again here we are just trying to link certain things so that you can gain the knowledge, again,

36
00:02:59,100 --> 00:03:01,320
optional videos please remember this.

37
00:03:01,710 --> 00:03:05,830
If you are comfortable with this, then only try to listen to this.

38
00:03:06,750 --> 00:03:08,250
So these are the records.

39
00:03:08,880 --> 00:03:14,570
So whenever you have to implement the DNS server, you need to create certain record.

40
00:03:14,580 --> 00:03:21,040
It could be A type record, canonical type Ctype record, but here we will be adding A.

41
00:03:21,490 --> 00:03:22,350
type record.

42
00:03:22,350 --> 00:03:24,510
It is showing you the name server.

43
00:03:24,930 --> 00:03:31,590
What is what are the name server that mean when we request certain names like www.ocloud.in.

44
00:03:31,890 --> 00:03:34,680
So first the request will go to DNS servers.

45
00:03:35,070 --> 00:03:38,820
We call these DNS servers as bind server or names server also.

46
00:03:39,300 --> 00:03:47,580
Then there some entry will be there regarding if it is the domain name, please go to this address so that

47
00:03:47,820 --> 00:03:53,550
basically your DNS servers just work like your contact list.

48
00:03:53,550 --> 00:04:00,630
Like when we have to dial somebody, we will put the name of that person and our phone contact lists

49
00:04:00,900 --> 00:04:03,000
will try to dial that same way.

50
00:04:03,360 --> 00:04:07,410
DNS is the relationship between the names and IP addresses.

51
00:04:08,580 --> 00:04:18,060
So what we will do, we will type add A type record and when we are going to say add it will show you different

52
00:04:18,060 --> 00:04:18,930
type of the record.

53
00:04:19,170 --> 00:04:26,570
We are going to say A then in host we specify @.

54
00:04:26,580 --> 00:04:33,810
when we are specifying @ that mean it will act as a wild card,

55
00:04:34,110 --> 00:04:43,800
that mean if we are going to say test.ocloud.in, abc.ocloud.in, it will point you to

56
00:04:43,800 --> 00:04:52,060
which address it is the address of our, that IP address where our Apache's running.

57
00:04:52,320 --> 00:04:58,800
let me again show that mean when we are talking about this was.

58
00:04:58,800 --> 00:04:59,520
the address.

59
00:05:00,870 --> 00:05:06,520
Of our Apache Web server, or you can again verify we have entered that address.

60
00:05:08,100 --> 00:05:12,750
So let me again go to there then what we are going to say save.

61
00:05:15,420 --> 00:05:17,050
Then we want to add another.

62
00:05:17,610 --> 00:05:25,460
We could have added a canonical name also, but again, we are adding type A, hostname www.

63
00:05:26,100 --> 00:05:29,830
Then again pointing, what will happen when we are going to type www

64
00:05:30,000 --> 00:05:35,670
.ocloud.in our web browser again, it will point.

65
00:05:35,830 --> 00:05:37,730
Then again we are going to save.

66
00:05:39,510 --> 00:05:40,870
Now this will be the record.

67
00:05:40,890 --> 00:05:49,470
Let me show you practically that in my case I have already logged in when I perform the search out

68
00:05:49,470 --> 00:05:53,580
of 4 it is showing my Ocloud.in domain me.

69
00:05:53,880 --> 00:05:54,990
So I will go there.

70
00:05:55,950 --> 00:05:57,080
I will click on Manage zone.

71
00:06:02,350 --> 00:06:03,380
what domain i want to manage

72
00:06:03,400 --> 00:06:06,910
so little bit you can type.

73
00:06:12,000 --> 00:06:14,360
Now it is showing me the details.

74
00:06:18,050 --> 00:06:25,280
So this is the record that I added these were earlier, we will discuss about, what is this?

75
00:06:25,610 --> 00:06:34,190
So these are the three already we can edit also, because if we are going to restart that machine,

76
00:06:34,760 --> 00:06:38,130
EC2, again, we are going to get a different address.

77
00:06:38,450 --> 00:06:43,380
Or you can use an elastic IP if you want that address to be permanent.

78
00:06:44,030 --> 00:06:45,650
So it is pointing.

79
00:06:45,650 --> 00:06:46,540
You can change it here.

80
00:06:47,120 --> 00:06:48,160
But we are not changing.

81
00:06:48,500 --> 00:06:50,020
This is our second record.

82
00:06:50,660 --> 00:06:57,200
That is how we are edit so that mean DNS is nothing, you have to do these two things.

83
00:06:58,050 --> 00:07:07,040
What are those two things you added this A type record with WildCard character.

84
00:07:08,160 --> 00:07:08,640
This one.

85
00:07:11,470 --> 00:07:16,480
Now, we will like to verify whether our everything is working properly or not.

86
00:07:16,900 --> 00:07:20,770
So what we will do, first of all, we will say http.

87
00:07:24,100 --> 00:07:29,470
www.ocloud.

88
00:07:30,780 --> 00:07:31,070
in.

89
00:07:33,700 --> 00:07:37,940
Now you can see that it is running.

90
00:07:39,580 --> 00:07:42,730
You could have typed http://

91
00:07:45,520 --> 00:07:46,750
ocloud.in.

92
00:07:50,980 --> 00:07:58,910
Again, that mean the purpose is relating your DNS name with your apache server.

93
00:07:59,140 --> 00:08:07,840
It is very easy to do that mean www.ocloud.in when we are going to see the first request will go to

94
00:08:08,290 --> 00:08:09,630
where it is going to go.

95
00:08:09,940 --> 00:08:12,530
It will go to our apache web server.

96
00:08:13,120 --> 00:08:20,860
Sorry our DNS server, DNS server, what it will return it will return the address that this is the

97
00:08:20,860 --> 00:08:21,330
address.

98
00:08:21,730 --> 00:08:23,740
Then the request will go.

99
00:08:23,750 --> 00:08:24,770
How you can verify.

100
00:08:25,180 --> 00:08:26,950
You can verify with this also.

101
00:08:29,380 --> 00:08:30,940
nslookup 

102
00:08:33,260 --> 00:08:38,090
www.ocloud.in.

103
00:08:40,430 --> 00:08:51,470
So what it is doing, it is returning that address www.ocloud.in, address is your 52.15.85.32

104
00:08:51,470 --> 00:08:59,890
so you can do the Ping, but Ping will not be working because when we launch that instance, we did not specify

105
00:09:00,550 --> 00:09:02,420
that we want to allow ICMP packet.

106
00:09:04,190 --> 00:09:06,860
So that is our how to link.

107
00:09:07,220 --> 00:09:13,520
In the next video we will like how to launch https site that mean know.

108
00:09:13,520 --> 00:09:19,350
we would like to open this site by using a https.

109
00:09:19,730 --> 00:09:22,210
Now, if you are going to click it, what did it say?

110
00:09:22,490 --> 00:09:23,710
Connection is not secure.

111
00:09:23,930 --> 00:09:30,950
So now we want certain secure site so we will see how to do that.

112
00:09:32,090 --> 00:09:39,650
So this was our that mean we were showing everything on slides also, so that you can comfortably if

113
00:09:39,650 --> 00:09:41,870
you want to implement, you can do that.
