Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: DNS Registry Hack

25 Jan 2011   #1

Win7 H.Prem. 32bit+SP1
 
 
DNS Registry Hack

What, if any, benefits would their be in performing the following. It was found at MVPS.ORG and recommended if using their hosts file with DNS Client in manual or disabled.
----
# Flush the existing DNS cache

# Start > Run (type) regedit
# Navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters

# Click Edit > New > DWORD Value (type) MaxCacheTtl

# Click Edit > New > DWORD Value (type) MaxNegativeCacheTtl

# Next right-click on the MaxCacheTtl entry (right pane) and select: Modify and change the value to 1

# The MaxNegativeCacheTtl entry should already have a value of 0 (leave it that way - see screenshot)

# Close Regedit and reboot ..
--
P.S. forgot to say it is for a laptop. I have tried it and my boot time trebled.
What effect, as above, would using the hack with DNS on auto and not using the hosts file.


My System SpecsSystem Spec
.

26 Jan 2011   #2

Windows 7 Ultimate x64
 
 

What is your goal?
My System SpecsSystem Spec
26 Jan 2011   #3

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
 
 

Quote:
# Click Edit > New > DWORD Value (type) MaxCacheTtl
This may have something to do with increasing the DNS cache amount so that the pages may load faster and the browser doesn't have to query the DNS for each website reducing the overall time.

I don't know about the other.
My System SpecsSystem Spec
.


26 Jan 2011   #4

Win7 H.Prem. 32bit+SP1
 
 

I was hoping it would speed up page loading. This is what I found about it Here
My System SpecsSystem Spec
26 Jan 2011   #5

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Roderunner View Post
I was hoping it would speed up page loading. This is what I found about it Here
The hosts file really won't help with that. The settings that you refer to won't really help with that. Both of these are more related to finding a site, not loading it.

And, each website will load at a speed dependent on the content at that site. This is part of why browsers use a cache.

A faster hard drive, a browser cache set to a RAM drive, a cache set to a separate hard drive, a faster CPU, more RAM in some cases, a faster browser - these are how you speed up page loading independently of website design.
My System SpecsSystem Spec
26 Jan 2011   #6

Win7 H.Prem. 32bit+SP1
 
 

Quote   Quote: Originally Posted by DeVandal View Post
Quote   Quote: Originally Posted by Roderunner View Post
I was hoping it would speed up page loading. This is what I found about it Here
The hosts file really won't help with that. The settings that you refer to won't really help with that. Both of these are more related to finding a site, not loading it.

And, each website will load at a speed dependent on the content at that site. This is part of why browsers use a cache.

A faster hard drive, a browser cache set to a RAM drive, a cache set to a separate hard drive, a faster CPU, more RAM in some cases, a faster browser - these are how you speed up page loading independently of website design.
I'm using hack & host file on my desktop without any bother, its the laptop thats upsetting things.
My System SpecsSystem Spec
27 Jan 2011   #7

Win7 H.Prem. 32bit+SP1
 
 

Info re topic update
-
DNS Setting
-
Tuning DNS Caching under Microsoft Windows

You can modify the behavior of the Microsoft Windows DNS caching algorithm by setting two registry entries in the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDnscacheParameters registry key.

The MaxCacheTtl represents the maximum time that the results of a DNS lookup will be cached. The default value is 86,400 seconds. If you set this value to 1, DNS entries will only be cashed for a single second.

MaxNegativeCacheTtl represents the maximim time that the results of a failed DNS lookup will be cached. The default value is 900 seconds. If you set this value to 0, failed DNS lookups will not be cached.
My System SpecsSystem Spec
27 Jan 2011   #8

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Roderunner View Post
The MaxCacheTtl represents the maximum time that the results of a DNS lookup will be cached. The default value is 86,400 seconds. If you set this value to 1, DNS entries will only be cashed for a single second.
I'm unsure how this would improve performance. Essentially you are saying to only cache a name for 1 second. All subsequent requests would then re-perform a new DNS lookup to determine the name again. All of these DNS Lookups will require time...not speed things up.
My System SpecsSystem Spec
27 Jan 2011   #9

Win7 H.Prem. 32bit+SP1
 
 

Quote   Quote: Originally Posted by pparks1 View Post
Quote   Quote: Originally Posted by Roderunner View Post
The MaxCacheTtl represents the maximum time that the results of a DNS lookup will be cached. The default value is 86,400 seconds. If you set this value to 1, DNS entries will only be cashed for a single second.
I'm unsure how this would improve performance. Essentially you are saying to only cache a name for 1 second. All subsequent requests would then re-perform a new DNS lookup to determine the name again. All of these DNS Lookups will require time...not speed things up.
As stated in an earlier post, I use the hacks with mvps.org's hosts file and DNS Service on auto on my slightly faster desktop and it does speed up page loading. If used on a laptop 'boot' time trebles.
My System SpecsSystem Spec
27 Jan 2011   #10

Windows 7 Ultimate x64
 
 

And as I stated, I don't see from a technical standpoint how expiring the DNS cache every 1 second on your local host could possibly lead to faster page loading... If anything, you would want to cache a DNS lookup even longer, so it only has to look it up once and then just keep referring to the cache rather than doing subsequent lookups.
My System SpecsSystem Spec
Reply

 DNS Registry Hack




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:40 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33