WEBVTT

00:09.110 --> 00:10.680
Offense will come back.

00:10.700 --> 00:14.780
Now it's time to install and configure your own DNS server.

00:15.230 --> 00:18.360
In our previous lesson we learned the tropical part of it.

00:18.560 --> 00:24.120
Now in this lesson I'm going to show you how to install configure and do your own DNS server.

00:24.280 --> 00:24.760
OK.

00:24.890 --> 00:26.590
So let's see practically.

00:26.780 --> 00:27.210
OK.

00:27.320 --> 00:33.630
There are a number of things that you need to do in order to install your own DNS servers successfully.

00:33.950 --> 00:39.650
OK so first of all you need to install the package OK which is necessary for a DNS server.

00:39.650 --> 00:43.430
So I'm going to show the whole install by nine.

00:43.460 --> 00:46.680
OK it is world famous your DNS software package.

00:46.700 --> 00:52.360
Ok so to install lact just do Sudipta Kate install by nine.

00:52.700 --> 00:57.160
Ok this will install the Byne package on your server.

00:57.470 --> 00:57.890
OK.

00:58.100 --> 01:03.350
And after installation of this you need to set up static IP address hoki.

01:03.440 --> 01:09.650
If you are really hearing static IP address please send the static IP address according to did set things

01:09.690 --> 01:12.030
OK and remove any extrinsically.

01:12.110 --> 01:18.680
OK so far that just opens a clock faces.

01:18.680 --> 01:19.170
OK.

01:19.210 --> 01:20.980
Check out the settings.

01:21.050 --> 01:25.050
Set everything correctly according to the settings.

01:25.240 --> 01:30.370
OK of setting up your own static IP address.

01:30.380 --> 01:34.570
The third thing that we need to do is we need set up our own.

01:34.990 --> 01:37.650
And that is fully qualified domain name.

01:37.760 --> 01:38.320
OK.

01:38.630 --> 01:41.830
And for that you need to know your host name.

01:41.870 --> 01:45.020
So just type the command hostname.

01:45.070 --> 01:46.690
This is my current host name.

01:46.940 --> 01:54.770
You can see your current hostname with this command to set up your own skilly and just open all the

01:55.340 --> 01:58.910
PC ports here.

01:59.060 --> 02:03.970
What you need to do is just come into this line here.

02:04.040 --> 02:08.870
What is most striking libraries 10.0 dot dot 16.

02:09.200 --> 02:09.860
OK.

02:10.130 --> 02:14.770
And here you need to sort of force the hostname code of light.

02:14.910 --> 02:21.060
It is the current hostname and I want to set up a domain name called off line dot com.

02:21.200 --> 02:28.440
OK you can set up any domain that you want but the format is same that means you need to stick to hostname

02:28.510 --> 02:30.790
and Dogon could last longer.

02:31.120 --> 02:31.720
OK.

02:31.920 --> 02:47.600
Of this again hostname sort of like this is over 2D and via certain god you got 16 years of phone call.

02:48.110 --> 02:48.780
OK.

02:51.410 --> 02:59.620
OK after writing this bestower hostname and of Goudey and stuff Gideon just type f and here you can

02:59.620 --> 03:02.150
see code off line got cut off line dot com.

03:02.180 --> 03:04.280
Now it is out of Guderian.

03:04.420 --> 03:05.080
OK.

03:05.660 --> 03:11.490
So the next thing that you need to do is you need to set up this DNS server.

03:11.690 --> 03:14.050
Ok as you were DNS server.

03:14.330 --> 03:14.660
OK.

03:14.660 --> 03:18.300
So for that what you need to do is just open the file.

03:18.390 --> 03:21.530
It is the result of gone.

03:22.130 --> 03:22.370
OK.

03:22.370 --> 03:26.780
Here you can see this is the good DNS server.

03:26.790 --> 03:34.010
So comment on this and here just type name so and add your own names over here.

03:34.060 --> 03:42.820
You got 16 and then each each line dot com.

03:43.120 --> 03:44.150
OK.

03:44.440 --> 03:44.690
Good.

03:44.740 --> 03:48.220
This is right this data.

03:48.310 --> 03:48.780
OK.

03:48.790 --> 03:55.430
Now if the setting does DNS so the next thing you need to do is you need to add forwarders means in

03:55.470 --> 04:01.410
case you set or fail to respond to a query then that queries transferred to forwards.

04:01.430 --> 04:09.870
OK so here I'm going to send Congress public DNS so as forwarder to get so sick forwarders unit to go

04:11.370 --> 04:17.820
see mine yes and he said you need to do the file name call option.

04:17.860 --> 04:18.980
So slow.

04:19.260 --> 04:23.800
I got one got options.

04:24.210 --> 04:31.060
OK here you need to remove these comment lines here.

04:31.610 --> 04:32.050
You are.

04:32.100 --> 04:36.320
Own forward us you can set up the IP addresses.

04:36.450 --> 04:40.670
And according to gyse but I like Google's public Dionysos

04:45.310 --> 04:49.960
it got a lot for not for.

04:51.270 --> 04:57.690
I did the forwarders and now it's time to test our followers again.

04:57.850 --> 05:01.810
So for that just restart your DNA.

05:01.810 --> 05:08.130
So so far that is my nine restart

05:10.970 --> 05:12.010
OK.

05:13.160 --> 05:16.400
Clear this green will get this day forward.

05:16.400 --> 05:26.270
So just to be able to not call OK now here you can see a time in millisecond skeery time and again the

05:26.270 --> 05:28.020
same domain.

05:28.550 --> 05:32.980
OK now the time is reduced to just milliseconds.

05:33.120 --> 05:36.820
OK so all four of those are working correctly here.

05:36.830 --> 05:40.180
Again the meaning of it is that.

05:40.630 --> 05:46.270
So after adding the forwarders notes time to carry it forward and we will look zone.

05:46.530 --> 05:50.690
OK so you cleared that you just need to go.

05:50.710 --> 05:56.240
It is mine and you need to open the file name back call the local.

05:56.370 --> 05:56.850
OK.

05:57.200 --> 06:03.390
So you just open that pseudo name.

06:04.750 --> 06:13.040
And here we're going to add the zone information or you can see me going on hear the zone names with

06:13.150 --> 06:14.420
the file locations.

06:14.480 --> 06:19.250
So you can create any zone according to your domain here.

06:19.520 --> 06:25.920
Just type of line dot com

06:29.620 --> 06:39.850
get in today's paper our paper is mustardy And so we're primarily and so on here you know the database

06:39.850 --> 06:43.290
location OK the zone database location.

06:43.300 --> 06:52.940
So file it is the vine just Callier of line Gocong got divi OK.

06:52.960 --> 06:55.220
This file is not present there currently.

06:55.280 --> 06:57.700
Are we going to create that file.

06:58.090 --> 06:58.500
OK.

06:58.540 --> 07:03.440
At this location and add the data according to our current settings.

07:03.530 --> 07:06.360
OK.

07:06.790 --> 07:10.740
Now this is the forward Likud's on ugly and I've put this forward lookup.

07:10.750 --> 07:13.600
So you just created he was absorbed.

07:13.740 --> 07:19.030
Agreed that he was Look-Up zone uniquely will see what I purchase like this.

07:19.060 --> 07:22.910
That is to dot zero dot.

07:23.160 --> 07:27.010
Then again you need to set your IP address in three words zone.

07:27.010 --> 07:43.920
In this way and in Italy are not a be and hear it again five Mosteller say location.

07:44.800 --> 07:55.690
It is the vine and here for me was file with a name it adds dot and OK you can name your database file

07:55.700 --> 07:57.260
what you want.

07:57.340 --> 07:59.710
It has nothing to do with your domain name.

07:59.850 --> 08:00.440
OK.

08:00.670 --> 08:05.810
So after writing this forward and we will look zone this.

08:05.930 --> 08:06.350
Right.

08:06.350 --> 08:07.310
Really good.

08:07.420 --> 08:08.060
OK.

08:08.120 --> 08:11.040
And now it's time to create our database files.

08:11.230 --> 08:14.230
So far that you create the file.

08:14.320 --> 08:16.590
I'm going to just copy here.

08:16.750 --> 08:20.300
I'm going to copy the DBI doc local file.

08:20.380 --> 08:21.040
OK.

08:21.420 --> 08:24.410
And just what EDV got the local

08:27.140 --> 08:34.480
quote off line because I'm not the we just do this with Sudol.

08:35.470 --> 08:38.550
OK wireman copying this because our.

08:38.620 --> 08:44.080
I'm OK our the time to have some information.

08:44.080 --> 08:48.540
So often this is pseudo why it did or did it I was fine.

08:48.580 --> 08:49.200
OK.

08:49.750 --> 08:56.840
So just start to insert a little bit of this here.

08:56.890 --> 09:02.830
You need to replace this localhost with our current domain.

09:03.090 --> 09:03.490
OK.

09:03.550 --> 09:05.930
So this guy called off the line.

09:05.940 --> 09:12.360
He said they couldn't call of thing got called off line dot com.

09:12.400 --> 09:17.380
And at the end had to get that dog group.

09:17.550 --> 09:23.670
OK and then here again rubab called off line.

09:26.940 --> 09:36.280
It this route got called off and come will be the Serwer our mail server for this zone our domain and

09:36.550 --> 09:38.230
this is the SUV.

09:38.390 --> 09:38.880
OK.

09:39.130 --> 09:43.300
And here you can see this DTL.

09:43.780 --> 09:47.520
You can see this deal according to your choice.

09:47.530 --> 09:52.620
OK here the serial number the serial number should be changed.

09:52.620 --> 09:52.890
OK.

09:52.960 --> 09:59.680
According to the zone I mean so when you create Nexus zone for another moment then this serial number

09:59.680 --> 10:03.880
should be increased by one or all you can said what do you want.

10:03.880 --> 10:05.920
But this should not be the same.

10:06.040 --> 10:06.330
OK.

10:06.340 --> 10:07.780
This is the refresh rate.

10:07.960 --> 10:11.080
This is retrack expire he needed to catch DTL.

10:11.130 --> 10:11.440
OK.

10:11.650 --> 10:13.910
All the settings are for the war zone.

10:13.990 --> 10:14.390
OK.

10:14.500 --> 10:17.450
This is the refresh rate for an expiry date.

10:17.470 --> 10:17.810
OK.

10:17.830 --> 10:20.700
All this information for you on.

10:21.080 --> 10:21.780
Here.

10:22.210 --> 10:28.500
What you need to do is you need to be addressed in order to got to got 16.

10:29.410 --> 10:35.910
And here early or only four or three lines of code.

10:35.950 --> 10:47.650
And at the end of the loop and here w w d you recall if what I agree Souci that we have learned in the

10:47.650 --> 10:55.820
previous lesson different records and loans you know to got 60 to get the first recall here is antithetical.

10:55.860 --> 10:57.350
We are winning here.

10:57.450 --> 11:08.040
Gura of course and this can be this W.W. means it is a web server of this sort I don't do it.

11:08.720 --> 11:09.430
OK.

11:09.790 --> 11:16.200
Now after writing this data the next thing we need to do is we need to create a database for lookup

11:16.200 --> 11:17.140
zone.

11:17.200 --> 11:26.440
So for that not this time copied the code of number com got DBI to deal with Doc and because we have

11:26.450 --> 11:30.080
said this name in Plaut forward look observe and file.

11:30.280 --> 11:33.760
So we just copied pogey and opened

11:38.790 --> 11:39.380
OK.

11:39.660 --> 11:43.740
No he had to make some changes.

11:46.180 --> 11:54.020
OK here's what you need to do is replace this android with your IP address and.

11:54.150 --> 11:58.140
16 is the end of day IP of this machine.

11:58.800 --> 12:02.280
And here just replace it as

12:06.620 --> 12:13.130
well out of line on is this PDA.

12:13.160 --> 12:14.680
That is the point record.

12:14.840 --> 12:19.760
It is used for a reverse lookup zone and in his foreign names there were no good.

12:20.030 --> 12:24.010
No just run down this tape.

12:26.210 --> 12:27.640
Clear.

12:28.070 --> 12:29.360
Now what do you need to do.

12:29.390 --> 12:35.010
So this by nine days start

12:39.650 --> 12:42.720
it takes Koslov.

12:43.690 --> 12:44.140
OK.

12:44.150 --> 12:49.220
Here you can see our bind 9 service is back and running again.

12:49.400 --> 12:53.640
So good looking forward lookup Zaur look observe.

12:53.840 --> 12:56.210
We have a database for it.

12:56.270 --> 12:56.790
OK.

12:56.990 --> 13:02.200
And after that now it's time to check all our DNS server.

13:02.450 --> 13:03.040
OK.

13:03.490 --> 13:07.930
So instead I'm going to do this look up windows so.

13:08.360 --> 13:08.890
OK.

13:09.150 --> 13:11.050
So look at that.

13:11.130 --> 13:17.460
I equal any I'm going to test any record and we've already learned how to block with the DNS so.

13:17.510 --> 13:17.900
OK.

13:17.990 --> 13:21.330
So just to sort of like go home.

13:21.560 --> 13:22.110
OK.

13:22.250 --> 13:32.690
I know it's ruling elite here or that we how it now good was look up Guri just type IP address.

13:32.960 --> 13:33.280
OK.

13:33.410 --> 13:34.450
Like this.

13:34.700 --> 13:35.390
OK.

13:35.410 --> 13:44.060
Now this means we have successfully configured our DNS server OK how this coalition is successful in

13:44.060 --> 13:46.960
this field you can create your own DNS server.

13:47.030 --> 13:53.270
You can use Cornie we're a local network if you want to make it public like Google's DNS server you

13:53.270 --> 13:56.000
need to register them online.

13:56.120 --> 13:56.420
Maggie.
