DNS Registry Hack

Page 1 of 2 12 LastLast

  1. Posts : 2,362
    Win7 H.Prem. 32bit+SP1
       #1

    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.
    Last edited by Roderunner; 25 Jan 2011 at 23:20. Reason: Add P.S.
      My Computer


  2. Posts : 287
    Windows 7 Ultimate x64
       #2

    What is your goal?
      My Computer


  3. Posts : 1,036
    Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
       #3

    # 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 Computer


  4. Posts : 2,362
    Win7 H.Prem. 32bit+SP1
    Thread Starter
       #4

    I was hoping it would speed up page loading. This is what I found about it Here
      My Computer


  5. Posts : 287
    Windows 7 Ultimate x64
       #5

    Roderunner said:
    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 Computer


  6. Posts : 2,362
    Win7 H.Prem. 32bit+SP1
    Thread Starter
       #6

    DeVandal said:
    Roderunner said:
    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 Computer


  7. Posts : 2,362
    Win7 H.Prem. 32bit+SP1
    Thread Starter
       #7

    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 Computer


  8. Posts : 7,878
    Windows 7 Ultimate x64
       #8

    Roderunner said:
    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 Computer


  9. Posts : 2,362
    Win7 H.Prem. 32bit+SP1
    Thread Starter
       #9

    pparks1 said:
    Roderunner said:
    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 Computer


  10. Posts : 7,878
    Windows 7 Ultimate x64
       #10

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 12:56.
Find Us