Re: HELP:DNS cache

From: kennyen
Date: Thu Apr 14 2005 - 00:54:16 EST


em...may be our configuration a bit different, once my dns server is down i can't ping any hosts but only what were inside my "/etc/hosts" file. or,my linux box will resolve via secondary dns server. is good to know if some one can tell the command "abc" :)


----- Original Message ----- From: "Wei Dong" <weid@xxxxxxxxxxxxxxxx>
To: "kennyen" <kennyen@xxxxxxxxxxx>
Cc: <linux-net@xxxxxxxxxxxxxxx>
Sent: Thursday, April 14, 2005 1:16 PM
Subject: Re: HELP:DNS cache


Hi kennyen:
I'm very glad that you've answered my question.But what i wanted to konw is the command to empty the DNS cache.For example:
If i know the command to empty the DNS cache,and it is "abc". I've run BIND9,then i enter "ping www.test.com" The DNS server will return the IP Address 192.168.0.1. Then i shutdown DNS server,but the resolution messages still in client pc DNS cache(OS Linux).I enter "ping www.test.com", the ping program still can ping 192.168.0.1.After i enter the command "abc",i run ping program ,the ping program will show "Unknow host name",now what i want to konw is the command "abc".
----- Original Message ----- From: "kennyen" <kennyen@xxxxxxxxxxx>
To: "Wei Dong" <weid@xxxxxxxxxxxxxxxx>; <linux-net@xxxxxxxxxxxxxxx>
Sent: Thursday, April 14, 2005 12:56 PM
Subject: Re: HELP:DNS cache


try host command,

example,

host yahoo.com [nameserver]



----- Original Message ----- From: "Wei Dong" <weid@xxxxxxxxxxxxxxxx>
To: <linux-net@xxxxxxxxxxxxxxx>
Sent: Thursday, April 14, 2005 10:39 AM
Subject: HELP:DNS cache


Dear All:
Because i want to test dns,and there is a problem
I want to test dns server from client pc.And we know client pc(OS Linux) has a DNS cache,
it saves the lastest DNS resolution messages,and it will influence my test result.
So i want to know how to empty the DNS cache in client pc(OS Linux).
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html




-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html