From: Nicetameetya on

[Default] On Sun, 28 Mar 2010 02:09:27 -0500, Char Jackson
<none(a)none.invalid> told us in complete confidence:

>On Sun, 28 Mar 2010 15:59:27 +1300, Nicetameetya
><gday(a)invalid.invalid> wrote:
>
>>
>>[Default] On Sat, 27 Mar 2010 17:22:32 -0700, John Corliss
>><q34wsk20(a)yahoo.com> told us in complete confidence:
>>
>>>
>>>To the OP:
>>>
>>>To clear the DNS cache manually, I use a simple batch file I named
>>>"Flush DNS cache.bat" and which contains only the following line:
>>>
>>>ipconfig/flushdns
>>
>>If I'm not mistaken there's a space after ipconfig.
>>
>>ipconfig /flushdns
>
>By convention, yes there's usually a space between the command and any
>switches, but it works equally well, at least in this case, without
>the space. (It looks strange without a space to me, too.)

Just tried ipconfig/flushdns in XPpro and got an error window.


From: John Corliss on
Nicetameetya wrote:
> John Corliss wrote:
>>
>> To the OP:
>>
>> To clear the DNS cache manually, I use a simple batch file I named
>> "Flush DNS cache.bat" and which contains only the following line:
>>
>> ipconfig/flushdns
>
> If I'm not mistaken there's a space after ipconfig.
>
> ipconfig /flushdns

Since /flushdns is a parameter, you're right. Still, the command works
for me the way I typed it into the batch file, but I'm going to change
it to your suggestion anyway because it's better syntax. Thanks!

--
John Corliss BS206. I block all Google Groups posts due to Googlespam,
and as many posts from anonymous remailers (like x-privat.org for eg.)
as possible due to forgeries posted through them.

No ad, CD, commercial, cripple, demo, nag, share, spy, time-limited,
trial or web wares OR warez for me, please. Adobe Flash sucks, DivX rules.
From: Kat Rabun on
On Sun, 28 Mar 2010 02:27:22 -0700, John Corliss wrote:

> I'm going to change it ... because it's better syntax.

Just for the record, I had tried the following commands in WinXP SP3; but
both failed due to the fact that the listing and flushing of the DNS cache
cannot be accomplished without the "DNS Client" service running.

C:\> ipconfig /displaydns
C:\> ipconfig /flushdns

This is what I previously reported for those commands (before enabling the
otherwise unnecessary DNS Client service).

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\kathleen>ipconfig /flushdns
Windows IP Configuration
Could not flush the DNS Resolver Cache: Function failed during execution.

C:\Documents and Settings\kathleen>ipconfig /displaydns
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Windows IP Configuration

www.adserver.com
----------------------------------------
Record Name . . . . . : www.adserver.com
Record Type . . . . . : 1
Time To Live . . . . : 595859
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 127.0.0.1

yieldmanager.net
----------------------------------------
Record Name . . . . . : yieldmanager.net
Record Type . . . . . : 1
Time To Live . . . . : 595859
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 127.0.0.1

www.adtrak.net
----------------------------------------
Record Name . . . . . : www.adtrak.net
Record Type . . . . . : 1
Time To Live . . . . : 595859
Data Length . . . . . : 4
Section . . . . . . . : Answer
A (Host) Record . . . : 127.0.0.1


BTW, I also found out how to start and stop the DNS caching:
c:\> net stop dnscache
c:\> sc servername stop dnscache
From: Johnw on
Kat Rabun formulated the question :
> This is what I previously reported for those commands (before enabling the
> otherwise unnecessary DNS Client service).
>
The DNS cache is cleared at every reboot.

XP Myths - Myths Regarding Windows XP
http://mywebpages.comcast.net/SupportCD/XPMyths.html

Services - Disabling Negative
Myth - "Disabling certain Services improves performance."
Reality - "Disabling certain Services actually reduces performance."
Automatic DNS Client Service - "The overall performance of the client
computer decreases and the network traffic for DNS queries increases if
the DNS resolver cache is deactivated. This effectively reduces
Internet Performance for sites you have previously visited and puts an
unnecessary load on your ISP's DNS server."

Large Hosts Files
"Large Hosts Files cause Internet related slowdowns due to DNS Client
Server Caching. This negatively effects your browsing speed.
AntiSpyware Hosts File authors irresponsibly recommend disabling the
DNS Client Service to solve this problem. This is not a solution. The
overall performance of the client computer decreases and the network
traffic for DNS queries increases if the DNS resolver cache is
deactivated. This effectively reduces Internet Performance for sites
you have previously visited and puts an unnecessary load on your ISP's
DNS server."
Notes - There is a much better solution for bad site blocking using
SpywareBlaster which more intelligently use's Internet Explorer's
built-in Zone Security settings and the registry. Mozilla/Firefox
protection is also provided.


From: John Corliss on
Johnw wrote:
> Kat Rabun formulated the question :
>> This is what I previously reported for those commands (before enabling
>> the
>> otherwise unnecessary DNS Client service).
>>
> The DNS cache is cleared at every reboot.
>
> XP Myths - Myths Regarding Windows XP
> http://mywebpages.comcast.net/SupportCD/XPMyths.html
>
> Services - Disabling Negative
> Myth - "Disabling certain Services improves performance."
> Reality - "Disabling certain Services actually reduces performance."
> Automatic DNS Client Service - "The overall performance of the client
> computer decreases and the network traffic for DNS queries increases if
> the DNS resolver cache is deactivated. This effectively reduces Internet
> Performance for sites you have previously visited and puts an
> unnecessary load on your ISP's DNS server."

Thanks for that info. I was, of course, unaware of this. I do leave the
DNS Client Service running though. Just made sense to me that I should.
Also, BlackViper pretty much recommends that you do so:

http://www.blackviper.com/WinXP/servicecfg.htm

> Large Hosts Files
> "Large Hosts Files cause Internet related slowdowns due to DNS Client
> Server Caching. This negatively effects your browsing speed. AntiSpyware
> Hosts File authors irresponsibly recommend disabling the DNS Client
> Service to solve this problem. This is not a solution. The overall
> performance of the client computer decreases and the network traffic for
> DNS queries increases if the DNS resolver cache is deactivated. This
> effectively reduces Internet Performance for sites you have previously
> visited and puts an unnecessary load on your ISP's DNS server."
> Notes - There is a much better solution for bad site blocking using
> SpywareBlaster which more intelligently use's Internet Explorer's
> built-in Zone Security settings and the registry. Mozilla/Firefox
> protection is also provided.

I've observed this myself. I think Spybot S&D's "Immunize" feature
increases the size of your hosts file. I no longer run that program though.

--
John Corliss BS206. I block all Google Groups posts due to Googlespam,
and as many posts from anonymous remailers (like x-privat.org for eg.)
as possible due to forgeries posted through them.

No ad, CD, commercial, cripple, demo, nag, share, spy, time-limited,
trial or web wares OR warez for me, please. Adobe Flash sucks, DivX rules.