I'm currently using a blacklist off https://github.com/StevenBlack/hosts, which has 50,000+ domains. However, I'm finding that my DNS Client CPU usage is abnormally high.

Does a large hosts file cause high CPU usage?

If so, apart from browser plugins, what are some alternatives to using a hosts file to blacklist certain domains across the whole system?

Edit: Windows 10

  • Is this windows or linux? Linux has ipset inconjection with iptables. My list is 600,000+ long and growing. – cybernard Apr 29 at 5:44
  • Blocking domains via the hosts file should be pretty efficient. Have you tried disabling local DNS caching? – dsstorefile1 Apr 29 at 5:45
  • 2
    remove the large hosts file and see if works normally again. – Keltari Apr 29 at 5:46
  • @Keltari Yes CPU usage goes down when removed. – George Tian Apr 29 at 6:48

disable (stop) DNS client, you do not need it in Windows

you may have also high CPU with large hosts with disabled DNS service, caused by explorer.exe (probable related to some antivirus)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.