Both or something has done both Number Eight get the static cash on your router with a regular expression.
Example point to the router local IP address.
OK what we're going to do we have to create a regular expression called example that means when you
open a browser which has any of those letters which is the x a and b l e.
Ok then it will be pointing to the local IP address of the microstate Crowther.
And let me show you that in a moment.
Now if I open here that is the common line of the computer if I'm being Googled you can see that it
is giving a reply from the IPO account which is 172 to 170 remember that 172 that to 1 7.
All right.
Now I will leave that open and then I will go to my click router and from here I will have to go to
static and I had to create a static here with a regular expression
example.
Ok so I have to put the or the star and then I write the example
and this trigger expression is pointing to the idea of 1 2 1 6 8 1 2 5 4 that this dies out that is
of the mind.
And then I will say OK.
All right.
Now this is what I need to do for now.
And let's go now to the other points and then I'll show you what will happen when we think now will
come.
Number 8 is done palmtop and I cleared the DNS cache on your router and on your PC.
So let's do that.
I go to the router here.
So I close this one and from here I will say flush cash all the Is all kashering.
And then also on my PC I will say here the command is an IP config slash flash DNS so any DNS which
are inside your computer also will be clear.
All right so we have done that part number 9 is done now but number 10 things to come from your PC and
we see which IP address we are getting.
So I have created Elger expression and I name it example.
And then I said this is to point to the IP address of the mike because then I said that now if we been
google.com then Google would come and the domain name.
They have some letters which are also examples.
So we have the example within Google.
They have also and then match the letters which are an example then in this case when I think Google
the gang before it was showing me google come IP address now which would show me the IP address of the
microfilter itself because example disporting to that IP address I hope that this is clear now that
we're doing now.
So let me just show you that again we see why we pay Google the converts giving 1 7 2 to 1 7.
Now if I again Google the come because he is giving me the IP address of one I will say that 1 2 5 4
because Google the com domain has some letters which match and Scheidegger expression that I'm creating.
And then that means that this expression would point to the IP address of the router.
All right so that is the Hodie that I wanted to show you how you can create static DNS.
Now of course this is just for lab if you want to have some permanent DNS static and trees then you
can create the domain name and you can create next to it the IP address of that domain name.
And in case any dynamic entry will come it will not override the static so the static is having the
priority number one.
For example if you put on your router a domain name of ABC dot com and then you put it forward an IP
address.
Then in this case if you can come dynamically with another IP address it will not override the static
one so the static one is the one which will remain correct.
Number that is done.
Now think BBC see all that you gave from which IP address you get in.
So let's try if I go here I think DDC the CEO that you carry so you can see I'm getting now an IP address
from a different range.
And the reason why.
Because BBC does see all that UK.
Those letters are not inside any of the letters of the expression that I created which is example.
So we have he is not that X is not there is not there and is not that he is not there and it is not
there and he is not there.
That's why it bypassed the static DNS that I have created.
All right phone number 11 is down.
But number two I'll remove the static DNS from your micrograph.
Let's do that.
I will go to the mike the IP and then I'll go to DNS and that the static and I will remove this one
part number 12 is down we have removed the static units that we have created.
I'm a 30 second static DNS entry to my network training camp.
All right.
So what I need to do I have first to spring to mind that's we're training to know what is the IP address
of that domain.
All right so I take this I gatherer's that is of the domain of my network them now I go to the DNS again
and then the static and then from here I will write my network training camp and then I pull the idea
out and then I will say OK.
So point number 13 is dumb both number 14 get the DNS cache on the mike to Katar and on your PC that
go to the microstructure first.
And from here I will go to cash and then I will flush the cash.
I go here to my PC.
I will say topical fake slash flushed us both under-14 is not one number 15 I think to my network training
that come on your PC.
Does it show the DNS cache.
So I open the thing here.
I will also open the router and that is the cache now so we can see that what I have here I have the
monitor training that is map to the IP address of the server my threatening to come and we have here
the DNS cache and let's now try to ping.
I will just flush the DNS and I will think to monitor training.
So you can see now if I put three of my honesty that is ongoing but inside the DNS cache we don't see
anything.
The reason why is because it has a static matching.
OK so this one is being static.
And that's the reason why we don't see anything in the cache.
Let's stop that.
So point number 15 is done.
When I was 16 disable the DNS cache flush the DNS on your PC on your router being to my network planning
come does it show on the caches.
So what we need now to do we have to go to the mat to drop it first I will disable this whether I have
correct it so I don't have any more IMAP for my trying to come outside side to side gather.
The second thing as I need to flush the DNS on the mike cropper.
The third thing I need to also flush the DNS inside my computer and now make it pink and look now to
the DNS gosh because she directly the discussion is showing up before it was not showing up because
this was active.
Now this was just disable then we can see this now showing up where both number 16 is done and now phone
number 17 we need to reset the router for the upcoming Lab. So let's do that.
I have to go to the router here again and then from here I will go to System and then reset configuration
and all for confirmation and reset both number 17 is 9 and we have reset this out.
So this is the first stop of this course.
This lab was all about the DNS so I have showed you why you need DNS on your microfilter how you can
set that to allow the request to come to the counter.
And I said that you should be careful that when you check this setting on you might out that security
might be started because anyone else that can use your my clicks there to be like a DNS for them.
And in this case you will have a lot of traffic traffic.
We call it unwanted traffic because you don't want someone to use your band was in order to send you
DNS queries.
And also I have showed you how you can let the router be configured to allow the computer to connect
to the Internet and then I'll show you some thoughts about the gashing on the DNS and the static of
DNS.
So I did what I wanted to show you this and I hope that this law was implemented for you and also you
and the.