1
00:00:00,210 --> 00:00:07,020
In the lab setup, what we want, we want to launch www.example1.com, www.example2.com www.

2
00:00:07,020 --> 00:00:12,440
example3.com, all on 172.24.0.1.

3
00:00:12,990 --> 00:00:15,750
That mean we are using one address for three sites.

4
00:00:15,760 --> 00:00:19,160
So this is called name based virtual hosting.

5
00:00:20,250 --> 00:00:27,240
Now please remember whenever you have to implement the name based virtual hosting, we need properly

6
00:00:27,240 --> 00:00:28,610
configured DNS server.

7
00:00:29,400 --> 00:00:35,700
What is the role of DNS server, because it is the DNS server which is going to resolve this example

8
00:00:35,700 --> 00:00:41,270
1.com, example2.com, example3.com to ipaddress 172.

9
00:00:41,400 --> 00:00:48,720
This is the role of DNS, since we are not implementing the DNS server because the DNS is again one

10
00:00:48,720 --> 00:00:49,740
full fledged topic.

11
00:00:50,130 --> 00:00:56,710
So the same functionality of DNS we are going to implement by using the host file.

12
00:00:57,090 --> 00:01:02,130
So in all the three system, we are going to make the entries in host file.

13
00:01:02,520 --> 00:01:11,730
What will be entry ip address 172.24.0.1 and then our domain name fully qualified domain

14
00:01:11,730 --> 00:01:22,830
name www.example1.com www, same entry for example2, example2.com example3.com that

15
00:01:22,830 --> 00:01:25,340
is entries we are going to make in the host file.

16
00:01:25,620 --> 00:01:37,440
So when the clients, what the clients do, it connects for getting the information about any

17
00:01:37,440 --> 00:01:43,120
domain name, it will connect to DNA server also hostname file also.

18
00:01:43,620 --> 00:01:52,500
So in hosts file it is going to find out, that mean if client is going to go to your host file and it is

19
00:01:52,500 --> 00:01:57,090
going to query www.example1.com, what the host files will return.

20
00:01:57,330 --> 00:02:05,850
It will return the ip address 172.24.0.1 in the case of example1.com, example2, and three also.

21
00:02:05,850 --> 00:02:14,910
that mean same functionality that is given by the DNS that can be and you can get that by making

22
00:02:14,910 --> 00:02:16,010
the host file.

23
00:02:16,290 --> 00:02:23,330
But if suppose there are hundreds system then making these entries in all the 100 system.

24
00:02:23,340 --> 00:02:28,350
This is difficult, if the number of systems are small so we can use this approach.

25
00:02:28,350 --> 00:02:35,430
So in our case, instead of using the DNS, we will be using this approach because our main purpose

26
00:02:35,700 --> 00:02:43,500
here in this course is learning about Apache Web server Single-Site then we are now discussing

27
00:02:43,500 --> 00:02:46,770
the virtual hosting first name based then IP based.

28
00:02:47,040 --> 00:02:50,250
So our main focus will be on Apache Web server.

29
00:02:50,250 --> 00:02:52,620
So we are getting that.

30
00:02:52,620 --> 00:02:59,760
We will be getting the functionality of the DNS by making changes in Hosts files and we have to make

31
00:02:59,760 --> 00:03:02,820
these changes in all the three systems.
