How can I change or specify DNS Cache Timings on Windows 2003 Server?

I'm trying to configure a monitor to check that a website is resolvable to its IP address.  We recent had a DNS failure with our ISP and our external web sites could not be reached.  I have the monitor in place and it seems to work but the concern is that DNS will cache the result and report positive even when the URL is no longer resolvable.  

What i need to be able to do is limit the length of time a DNS resolution is valid in the cache, effectively forcing a recheck.  I have had a look at DNS itself but there is little to configure.  I found the following for DNS clients, but it is unclear what impact this would have if applied to a 2003 server:-

"Tuning DNS Caching under Microsoft Windows
You can modify the behaviour of the Microsoft Windows DNS caching algorithm by setting two registry entries in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters 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 maximum 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."

Thanks in advance,

c.
ccfcfcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Toni UranjekConsultant/TrainerCommented:
Hi!

If I understand your problem correctly, you need to change TTL value of your web server record. If you are using MS DNS, open DNS console, select Advanced in View menu and then double click web server's record to change TTL.

HTH

Toni
0
ccfcfcAuthor Commented:
Hi,

I have looked at that but i could not find anywhere to adjust a single entry or even the whole server.  The TTL looks like its counting down from 24hrs, so i'm guessing thats what the default is.  

Regards,

C.
0
Toni UranjekConsultant/TrainerCommented:
Which DNS server do you use?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

ccfcfcAuthor Commented:
MS Windows 2003 Server DNS
0
Toni UranjekConsultant/TrainerCommented:
Go to Administrative tools, open DNS managment console, can you locate yor DNS zone and web server's record? Can you double click this record or right click it and select Properties? If you have enabled Advanced in View menu of DNS managment console, you should see TTL defined at the bottom of window.
0
ccfcfcAuthor Commented:
Hi, yes i can find the entry under the cache, but the option to change the TTL is grayed out.
0
Toni UranjekConsultant/TrainerCommented:
I don't think we understand each other correctly. I have a feeling that you are trying to manipulate cached records on internal DNS server. Where is external DNS server that hosts record for your web server? You should change TTL on external server.
0
ccfcfcAuthor Commented:
hi, yes thats exactly what I am trying to do.  I want the DNS server to have a shorter cache lifespan so that a URL is checked more frequently than 24 (which seems to be the default).  
0
Toni UranjekConsultant/TrainerCommented:
Because you can't change TTL of single cached record, I'm offering "dirty" workaround solution. If you don't have too many records you can create primary zone for your external DNS domain on internal DNS, add appropriate records and modify TTL of web server record. This is common practice for manipulation of external namespace on internal servers.
0
ccfcfcAuthor Commented:
I'm not looking to change the TTL for a single cached record - I'm looking for a parameter that I set in one place on the server that drops the TTL for the cache overall.
Is the setting at the start of this question the correct one to change, and if I change it what impact would I expect it to have and what potential consequences ?

Thanks.
0
Toni UranjekConsultant/TrainerCommented:
In this case, setting from your original post are correct. This will have immediate impact on your network and DNS server because amount of DNS traffic from and to your server will increase significantly. Whether or not you will face performance problems it depends on DNS server hardware, available bandwidth and number of clients and of course mainly on how do you configure registry settings.

You can use Performance monitor's DNS counters (for example: Total Query Received) to observe impact of the change.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.