Solved

How do I flush the DNS entries on a windows 2003 dns server?

Posted on 2009-07-08
4
680 Views
Last Modified: 2012-06-27
How do I flush the DNS entries on a windows 2003 dns server?
0
Comment
Question by:aramirez-1
  • 2
4 Comments
 
LVL 13

Expert Comment

by:jaynir
ID: 24809898
run
cmd

ipconfig /flushdns

this will flush the DNS.
0
 

Expert Comment

by:MrAltruistic
ID: 24809918
In the actual DNS server, you have to select the zone and remove the A records that you wish to eliminate.
0
 
LVL 13

Expert Comment

by:jaynir
ID: 24809933
If you want to turn off DNS caching you can use net stop dnscache command.

If you just want to clear DNS cache you can also use DNSCMD command that will clear the cache.

GO  to RUN
type CMD
ENTER

then type

DNSCMD /clearcache
0
 
LVL 9

Accepted Solution

by:
abolinhas earned 500 total points
ID: 24811704
In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache:

C:\>ipconfig /flushdns

You can also use the command ipconfig /displaydns to view the DNS resolver cache.


Turning off DNS Caching under Microsoft Windows:
If you experience frequent issues with DNS caching under Microsoft Windows, you can disable client-side DNS caching with either of these two commands:

net stop dnscache
sc servername stop dnscache

This will disable DNS caching until the next reboot. To make the change permanent, use the Service Controller tool or the Services tool to set the DNS Client service startup type to Disabled.


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_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 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.

http://support.microsoft.com/?scid=kb;en-us;318803&x=7&y=13
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
A short film showing how OnPage and Connectwise integration works.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now