Whenever a computer has problems in network communication such as able to access shares via IP address but not computer name, the first thing I’d do is to flush the DNS resolver cache and restart the computer. It is a simple yet effective command that has helped me fixed a couple of network problems.
If you go to Services window, you will see a DNS Client name with the description “Resolves and caches Domain Name System (DNS) names for this computer. If this service is stopped, this computer will not be able to resolve DNS names and locate Active Directory domain controllers. If this service is disabled, any services that explicitly depend on it will fail to start.”
To flush a computer’s DNS resolver cache, just go to Start > Run and type CMD to launch command prompt. Then type the following command:
ipconfig /flushdns
However, if you get an error that says Could not flush the DNS Resolved Cache: Function failed during execution”, here is how to fix it.

The reason why you’re unable to flush a Windows computer DNS cache is if the DNS Service is not running. Go to Start > Run and type services.msc. Double click the DNS Client to bring up DNS Client properties window. Make sure the startup type is set to Automatic and service status is Started. If not, just select the drop down menu, select Automatic and then click the Start button.

Now if you run the ipconfig /flushdns command in command prompt, you should see “Successfully flushed the DNS Resolver Cache”.
Some security experts believe that it is better to turn off DNS Client service because it is useless and dangerous but in my opinion, it is better to leave it turned on and make sure you have installed the latest Windows updates. The DNS Client is not specifically required to use the internet. What it does do is try to improve your internet experience. The most basic way it does this is by caching domain name addresses, which speeds up the browsing experience. This service also determines if an IPv4 or IPv6 address would be more appropriate for a domain name. In an enterprise, it can also be useful in letting the network know your PC’s domain name, which can simplify finding shared resources. Though it is safe to disable this service, most users will likely end up with slower internet browsing, as well as other minor DNS related issues, so it’s best to leave this one on.
In Microsoft Knowledge Base website, it did mention that “The overall performance of the client computer decreases and the network traffic for DNS queries increases if the DNS resolver cache is deactivated.
The DNS Client service optimizes the performance of DNS name resolution by storing previously resolved names in memory. If the DNS Client service is turned off, the computer can still resolve DNS names by using the network’s DNS servers.
When the Windows resolver receives a positive or negative response to a query, it adds that positive or negative response to its cache, and as a result, creates a DNS resource record. The resolver always checks the cache before querying any DNS server. If a DNS resource record is in the cache, the resolver uses the record from the cache instead of querying a server. This behavior expedites queries and decreases network traffic for DNS queries.”
Related posts:
I searched all over till I found this link – and IT WORKED!
thanks so much.
Thank you Raymond so much.
I went to I don’t know how many sites and yours was the only place that gave me the information I needed. How to turn on the DNS Cache.
Your assistance was invaluable.
Thanks raymond This Amazing site
Hi, my DNS Client was already started. I tried your fix, without effect. Still getting the same message.
Is there a “plan b” solution?
hello,
i am not able to open mediafire.com on my laptop. i tried both firefox and IE8. PLZ HELP ME.
This was extremely helpful and very effectively written. Thank you. Alot.
@lucktry.
The DNS Client is not DNS. It is merely a services to go and look for a server and pull some information from it. The TCP/IP Stack and DNS still basically run the Internet. There are a lot of other DLL files involved too however that is the basics of it.
@article writer
Two items.
1. Thanks for the article. I did not realize that the DNS Client service was utilized to flushdns.
2. You stated: Some security experts believe that it is better to turn off DNS Client service because it is useless and dangerous but in my opinion, it is better to leave it turned on and make sure you have installed the latest Windows updates.
Just FYI: Just the fact that there Windows updates exist and you have to utilize them to “patch up unknown security holes” since the time of release indicates that there are major issues with the Windows operating system. You are stating to people to leave an unnecessary services turned on however without knowing whether or not someone will find a way to connect to the service and hack around it. Microsoft may come out in 4 years and state oh look we found a security loophole for this and here is a patch for it. That’s all fine and dandy however you want people to take that chance and leave themselves open for whatever time frame IF Microsoft makes a patch for a service they left a loophole in?? I don’t agree. The reason some of the “security experts” state to leave it off is just for that reason. If Microsoft doesn’t know about the loophole then it hasn’t been closed and sometimes they do in fact know about it but just aren’t patching it for whatever reason. In either case, you are taking a chance of compromising your system if you choose to leave unnecessary services running on your computer. Since I don’t monitor this blog post, if you have further questions you can post a question in the forum at scrfix.com. Please keep in mind, I only check that forum to answer questions every 2 or 3 days. Have a great day. :D – Wayne
hi everyone
the article said that The DNS Client is not specifically required to use the internet,
i wonder what program running to use the internet..
anybody?
the was excellent troubleshooting dude!!!!!!
ana i feel you i have the same problem to still
kak si be maina ela unas ako iskash
Thank you so much for posting this. It helped me.
Thanks again.
Thanks it helps me to solve my problem.If i turn off DNS then what it results.Is it affects my internet speed
Thanks it helps me to solve my problem.If i turn off DNS then what it results is good of more worse………..
thanks a lot for making my FLUSH DNS work
Question ? is this problem virus related (flushdns resolve error) ?
i have the same problems but after i search the services.msc it appear no CLIENT service but instead DHCP client. how would i do?
Resolveu meu problema, muito obrigado.
THANKS!!! worked for me!!! thank you very much
the only useful articl in net thanks a lot
how to fix this problem permenantly?i’m using this tips but after i shoutdown my pc the problem appear again…
Thank you very much! I had this issue with Windows 7 and Vista and I never been able to find a solution until this moment :)
Didnt know flushdns was depended on DNS Service.
Thanks !
I still have the problem… :(
Thanks, it worked for me.
Hello everybody, , i have DSL connection 1mbps and my isp router which is connected with my wifi linksys router (cascaded router) … my laptop is connected wirelessly with linksys router while my desktop pc which i bought 3 days ago is connected through ethernet cable with linksys router, my this configuration was working perfect untill yesterday and i was able to access the internet on my desktop pc without any problem but yesterday but today in the morning as i turned on my pc my pc was connected to the router but there was no internet activity..i tried repairing the connection but got error unable to clear dns cache then i tried this command ipconfig /flushdns but it got failed too then i tried this command in cmd REG ADD HKLM\\SYSTEM\\CurrentControlSet\\Services\\Dnscache /V Start /T REG_DWORD /F /D 2
and i checked my dns client service was running and fine….everything is fine but still my internet connectivity is not working ..even though after running the above command i tried repairing my connection and im not getting dns error anymore but still internet connectivity is not working…any reason? is it because i updated my windows last night? sp3 is the source of problem ?any reply will highly be appreciated, thanks in advanced and yes my NIC card is working fine since im connected to linksys router via ethernet cable 100mbs
i work for a tech support and this helped me alot on a cu\\\’s call
This totally works for people with ‘limited or no connectivity problem’. I had this problem for almost a week and this single-paged article solved it!! Thank you for writing this article, Raymond!!
thx for ur solution…
It worked! Awesome.
Thanks raymond, this fixed my problem and i learned a new something thanks again
been looking for this.. thanks much! :)
lol this reminds me of something that happend a few days ago :D
@Nerd: Your wireless router apparently sucks and cannot catch up with the number of connections produced by bittorrent. Get a decent replacement.
Hey Raymond i need your help on an issue
Everytime i use U-torrent my net browsers refuse to go online and if i close u-torrent the entire net shutsdown it even affects my wireless router so i need to restart my modem and wireless router and PC.
Any advice i’ll be thankful!
If unlike “Automatic” it is “Manual” can the annoyance disappear also?
How much slower is internet browsing? And If active (DNS Service) how much resources does it use?