Offense will come back.
Now it's time to install and configure your own DNS server.
In our previous lesson we learned the tropical part of it.
Now in this lesson I'm going to show you how to install configure and do your own DNS server.
OK.
So let's see practically.
OK.
There are a number of things that you need to do in order to install your own DNS servers successfully.
OK so first of all you need to install the package OK which is necessary for a DNS server.
So I'm going to show the whole install by nine.
OK it is world famous your DNS software package.
Ok so to install lact just do Sudipta Kate install by nine.
Ok this will install the Byne package on your server.
OK.
And after installation of this you need to set up static IP address hoki.
If you are really hearing static IP address please send the static IP address according to did set things
OK and remove any extrinsically.
OK so far that just opens a clock faces.
OK.
Check out the settings.
Set everything correctly according to the settings.
OK of setting up your own static IP address.
The third thing that we need to do is we need set up our own.
And that is fully qualified domain name.
OK.
And for that you need to know your host name.
So just type the command hostname.
This is my current host name.
You can see your current hostname with this command to set up your own skilly and just open all the
PC ports here.
What you need to do is just come into this line here.
What is most striking libraries 10.0 dot dot 16.
OK.
And here you need to sort of force the hostname code of light.
It is the current hostname and I want to set up a domain name called off line dot com.
OK you can set up any domain that you want but the format is same that means you need to stick to hostname
and Dogon could last longer.
OK.
Of this again hostname sort of like this is over 2D and via certain god you got 16 years of phone call.
OK.
OK after writing this bestower hostname and of Goudey and stuff Gideon just type f and here you can
see code off line got cut off line dot com.
Now it is out of Guderian.
OK.
So the next thing that you need to do is you need to set up this DNS server.
Ok as you were DNS server.
OK.
So for that what you need to do is just open the file.
It is the result of gone.
OK.
Here you can see this is the good DNS server.
So comment on this and here just type name so and add your own names over here.
You got 16 and then each each line dot com.
OK.
Good.
This is right this data.
OK.
Now if the setting does DNS so the next thing you need to do is you need to add forwarders means in
case you set or fail to respond to a query then that queries transferred to forwards.
OK so here I'm going to send Congress public DNS so as forwarder to get so sick forwarders unit to go
see mine yes and he said you need to do the file name call option.
So slow.
I got one got options.
OK here you need to remove these comment lines here.
You are.
Own forward us you can set up the IP addresses.
And according to gyse but I like Google's public Dionysos
it got a lot for not for.
I did the forwarders and now it's time to test our followers again.
So for that just restart your DNA.
So so far that is my nine restart
OK.
Clear this green will get this day forward.
So just to be able to not call OK now here you can see a time in millisecond skeery time and again the
same domain.
OK now the time is reduced to just milliseconds.
OK so all four of those are working correctly here.
Again the meaning of it is that.
So after adding the forwarders notes time to carry it forward and we will look zone.
OK so you cleared that you just need to go.
It is mine and you need to open the file name back call the local.
OK.
So you just open that pseudo name.
And here we're going to add the zone information or you can see me going on hear the zone names with
the file locations.
So you can create any zone according to your domain here.
Just type of line dot com
get in today's paper our paper is mustardy And so we're primarily and so on here you know the database
location OK the zone database location.
So file it is the vine just Callier of line Gocong got divi OK.
This file is not present there currently.
Are we going to create that file.
OK.
At this location and add the data according to our current settings.
OK.
Now this is the forward Likud's on ugly and I've put this forward lookup.
So you just created he was absorbed.
Agreed that he was Look-Up zone uniquely will see what I purchase like this.
That is to dot zero dot.
Then again you need to set your IP address in three words zone.
In this way and in Italy are not a be and hear it again five Mosteller say location.
It is the vine and here for me was file with a name it adds dot and OK you can name your database file
what you want.
It has nothing to do with your domain name.
OK.
So after writing this forward and we will look zone this.
Right.
Really good.
OK.
And now it's time to create our database files.
So far that you create the file.
I'm going to just copy here.
I'm going to copy the DBI doc local file.
OK.
And just what EDV got the local
quote off line because I'm not the we just do this with Sudol.
OK wireman copying this because our.
I'm OK our the time to have some information.
So often this is pseudo why it did or did it I was fine.
OK.
So just start to insert a little bit of this here.
You need to replace this localhost with our current domain.
OK.
So this guy called off the line.
He said they couldn't call of thing got called off line dot com.
And at the end had to get that dog group.
OK and then here again rubab called off line.
It this route got called off and come will be the Serwer our mail server for this zone our domain and
this is the SUV.
OK.
And here you can see this DTL.
You can see this deal according to your choice.
OK here the serial number the serial number should be changed.
OK.
According to the zone I mean so when you create Nexus zone for another moment then this serial number
should be increased by one or all you can said what do you want.
But this should not be the same.
OK.
This is the refresh rate.
This is retrack expire he needed to catch DTL.
OK.
All the settings are for the war zone.
OK.
This is the refresh rate for an expiry date.
OK.
All this information for you on.
Here.
What you need to do is you need to be addressed in order to got to got 16.
And here early or only four or three lines of code.
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
previous lesson different records and loans you know to got 60 to get the first recall here is antithetical.
We are winning here.
Gura of course and this can be this W.W. means it is a web server of this sort I don't do it.
OK.
Now after writing this data the next thing we need to do is we need to create a database for lookup
zone.
So for that not this time copied the code of number com got DBI to deal with Doc and because we have
said this name in Plaut forward look observe and file.
So we just copied pogey and opened
OK.
No he had to make some changes.
OK here's what you need to do is replace this android with your IP address and.
16 is the end of day IP of this machine.
And here just replace it as
well out of line on is this PDA.
That is the point record.
It is used for a reverse lookup zone and in his foreign names there were no good.
No just run down this tape.
Clear.
Now what do you need to do.
So this by nine days start
it takes Koslov.
OK.
Here you can see our bind 9 service is back and running again.
So good looking forward lookup Zaur look observe.
We have a database for it.
OK.
And after that now it's time to check all our DNS server.
OK.
So instead I'm going to do this look up windows so.
OK.
So look at that.
I equal any I'm going to test any record and we've already learned how to block with the DNS so.
OK.
So just to sort of like go home.
OK.
I know it's ruling elite here or that we how it now good was look up Guri just type IP address.
OK.
Like this.
OK.
Now this means we have successfully configured our DNS server OK how this coalition is successful in
this field you can create your own DNS server.
You can use Cornie we're a local network if you want to make it public like Google's DNS server you
need to register them online.
Maggie.