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

27 Jan 2011   #11
EzioAuditore

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
 
 

Quote   Quote: Originally Posted by pparks1 View Post
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.
Yeah. You should increase the cache time so that your system doesn't have to query the DNS again and again for the same site you visited just 1 second ago and can use this cache to begin the page loading sequence faster and what do you mean by '' I use hacks" ?


My System SpecsSystem Spec
.
27 Jan 2011   #12
Roderunner

Win7 H.Prem. 32bit+SP1
 
 

Quote   Quote: Originally Posted by EzioAuditore View Post
Quote   Quote: Originally Posted by pparks1 View Post
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.
Yeah. You should increase the cache time so that your system doesn't have to query the DNS again and again for the same site you visited just 1 second ago and can use this cache to begin the page loading sequence faster and what do you mean by '' I use hacks" ?
Hi, I have read that a PC first checks the host's file, if successful it has no need to use DNS Service.
The 'hacks' are in my start thread, Maybe should have described them as 'edits'
My System SpecsSystem Spec
27 Jan 2011   #13
NoN

Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
 
 

Quote   Quote: Originally Posted by Roderunner View Post
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.
You can see on screenshot, some DNS Cache hack since XP (meant Windows 98)...maybe a look at speedguide.net can help you a litlle but there's a lot of discuss on MS Technet site, search for DNS.
My System SpecsSystem Spec
.

27 Jan 2011   #14
pparks1

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Roderunner View Post
Hi, I have read that a PC first checks the host's file, if successful it has no need to use DNS Service.
The 'hacks' are in my start thread, Maybe should have described them as 'edits'
Yes, the PC always uses the Host file first. This gives you complete ability to override and set DNS entries to whatever you want. Of course, the downside is that if the site ever moves to a new IP, you have to update your hosts file accordingly...otherwise you will still be pointing at the old IP which may or may not resolve to anything.
My System SpecsSystem Spec
27 Jan 2011   #15
Fayla

Windows 7 Professional 64 Bit SP1
 
 

That's what I do with my computer. It should also help avoid MIM attacks. I have a few entries in my HOSTS file and they are for the SSL login pages of websites I frequent.

The MVPS has a point worth noting:

Quote:
Editors Note: in most cases a large HOSTS file (over 135 kb) tends to slow down the machine.
Quote   Quote: Originally Posted by pparks1 View Post
Quote   Quote: Originally Posted by Roderunner View Post
Hi, I have read that a PC first checks the host's file, if successful it has no need to use DNS Service.
The 'hacks' are in my start thread, Maybe should have described them as 'edits'
Yes, the PC always uses the Host file first. This gives you complete ability to override and set DNS entries to whatever you want. Of course, the downside is that if the site ever moves to a new IP, you have to update your hosts file accordingly...otherwise you will still be pointing at the old IP which may or may not resolve to anything.
My System SpecsSystem Spec
27 Jan 2011   #16
NoN

Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
 
 

My System SpecsSystem Spec
27 Jan 2011   #17
Roderunner

Win7 H.Prem. 32bit+SP1
 
 

Quote   Quote: Originally Posted by NoN View Post
Quote   Quote: Originally Posted by Roderunner View Post
Quote   Quote: Originally Posted by pparks1 View Post
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.
You can see on screenshot, some DNS Cache hack since XP (meant Windows 98)...maybe a look at speedguide.net can help you a litlle but there's a lot of discuss on MS Technet site, search for DNS.
Sorry, I can't enlarge the image you posted
Quote   Quote: Originally Posted by pparks1 View Post
Quote   Quote: Originally Posted by Roderunner View Post
Hi, I have read that a PC first checks the host's file, if successful it has no need to use DNS Service.
The 'hacks' are in my start thread, Maybe should have described them as 'edits'
Yes, the PC always uses the Host file first. This gives you complete ability to override and set DNS entries to whatever you want. Of course, the downside is that if the site ever moves to a new IP, you have to update your hosts file accordingly...otherwise you will still be pointing at the old IP which may or may not resolve to anything.
I check MVPS site frequently for updates.
My System SpecsSystem Spec
27 Jan 2011   #18
Roderunner

Win7 H.Prem. 32bit+SP1
 
 

Quote   Quote: Originally Posted by NoN View Post
I use OpenDNS for my PC's with the updater application.
My System SpecsSystem Spec
28 Jan 2011   #19
NoN

Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
 
 

Quote   Quote: Originally Posted by Roderunner View Post
Quote   Quote: Originally Posted by NoN View Post
I use OpenDNS for my PC's with the updater application.
Could be the easier solution checking what's up!...
My System SpecsSystem Spec
Reply

 DNS Registry Hack




Thread Tools




Similar help and support threads
Thread Forum
Registry hack to set the desktop icon size to small - Win7 64bit
I am trying to find the registry key that will change the desktop icon size to small. This is mainly for new users, or for the default user. I have workstations that have several people sharing them and need this for everyone. I have looked in these locations:...
Installation & Setup
Registry problem after windows update and registry optimization tool
Hello sevenforum, I've already spend some time on this forum today but I can't find the solution to a particular registry problem I'm having. While windows was uploading some updates yesterday, I cleaned my registry using Iolo's system mechanic tool and that's where the problems started. (I...
Backup and Restore
Driver Sweeper can't delete all registry files in registry editor
http://i2.aijaa.com/b/00227/9175142.png So this is the situation: I've unistalled Amd Driver from Device Manager, Unistalled Catalyst software and ran Driver Sweeper. There is only 3 registeries that the Driver Sweeper CAN'T delete and these are under SYSTEM\ folder. I've tried to change user...
Drivers
Ready Boot/Read Boost ---- Registry Hack
Does anyone know how to edit the registry to instruct Ready Boot/Ready Boost to apply only to speeding up the launch of applications? I very rarely shut down my computer and when I do, I am not concerned with having it boot up any quicker than it already does. I would prefer to have...
Performance & Maintenance
Registry hack for windows close delay
Anyone know the registry tweak to adjust the delay when windows close? They look fine popping up but when I click the close button, there's like a jitter during the hesitation, then they close. Really annoying.
General Discussion


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 05:58.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App