DNS Registry Hack

Roderunner

Exterminator
Guru
Gold Member
VIP
Local time
5:03 PM
Messages
2,362
Location
Scotland
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:

My Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
What is your goal?
 

My Computer

OS
Windows 7 Ultimate x64
CPU
P4 3.2
Motherboard
Intel 815GM
Memory
DDR 400
Graphics Card(s)
ATI HD3850
Sound Card
C-Media 7.1
Monitor(s) Displays
SyncMaster 244T
Screen Resolution
1920*1200
Hard Drives
Several
PSU
500
Case
PowerSpec $24
Cooling
ThermalTake copper
Internet Speed
Blazing
# 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

Computer Manufacturer/Model Number
HCL
OS
Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
CPU
Core 2 Duo e7400 @ 2.90GHz
Motherboard
Gigabyte G31M-ES2L
Memory
3GB DDR2
Graphics Card(s)
Asus Nvidia GTX 560Ti 1GB
Sound Card
On-board
Monitor(s) Displays
HCL eZeeBee 18.5" LCD
Screen Resolution
1366x768 @ 60Hz
Hard Drives
Western Digital 320GB
PSU
Corsair CX500 V2 500W
Cooling
Stock
Keyboard
Stock
Mouse
Stock
Internet Speed
15-25kBps D/L | 10kBps U/L | Hey Don't laugh
I was hoping it would speed up page loading. This is what I found about it Here
 

My Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
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

OS
Windows 7 Ultimate x64
CPU
P4 3.2
Motherboard
Intel 815GM
Memory
DDR 400
Graphics Card(s)
ATI HD3850
Sound Card
C-Media 7.1
Monitor(s) Displays
SyncMaster 244T
Screen Resolution
1920*1200
Hard Drives
Several
PSU
500
Case
PowerSpec $24
Cooling
ThermalTake copper
Internet Speed
Blazing
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

Computer Manufacturer/Model Number
Look in my Signature.
OS
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 Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
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

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
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

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
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

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
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 Computer

Computer Manufacturer/Model Number
HCL
OS
Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
CPU
Core 2 Duo e7400 @ 2.90GHz
Motherboard
Gigabyte G31M-ES2L
Memory
3GB DDR2
Graphics Card(s)
Asus Nvidia GTX 560Ti 1GB
Sound Card
On-board
Monitor(s) Displays
HCL eZeeBee 18.5" LCD
Screen Resolution
1366x768 @ 60Hz
Hard Drives
Western Digital 320GB
PSU
Corsair CX500 V2 500W
Cooling
Stock
Keyboard
Stock
Mouse
Stock
Internet Speed
15-25kBps D/L | 10kBps U/L | Hey Don't laugh
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 Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
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.
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
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 Computer

Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.
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:

Editors Note: in most cases a large HOSTS file (over 135 kb) tends to slow down the machine.

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 Computer

Computer Manufacturer/Model Number
HP DV6 1330sa
OS
Windows 7 Professional 64 Bit SP1
CPU
INTEL DUAL CORE 2.1Ghz
Motherboard
N/A
Memory
4GB DDR3
Graphics Card(s)
INTEL
Sound Card
LAPTOP
Monitor(s) Displays
2
Screen Resolution
3200x1080
Hard Drives
250GB
PSU
LAPTOP
Case
LAPTOP
Cooling
LAPTOP
Keyboard
SOLID YEAR 260U
Mouse
USB
Internet Speed
20 MB/S

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
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
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 Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
Back
Top