Hosts: DNS Client High Cpu Usage

Created on 8 Jul 2018  路  7Comments  路  Source: StevenBlack/hosts

Hello!

I've seen people with similar issues with connectivity when using this huge hosts file. I just switched over to winhelp2002 mvps file from this one and for some reason, DNS Client didn't react to it. I no longer have these 10-30s delays when connecting to the net or switching on/off VPN. Could it be due to the file size? Hosts.mvps is (today) 465KB while "StevenBlacks" is 2038KB (depending on which one you choose).

All 7 comments

Hello! Thank you for opening your first issue in this repo. It鈥檚 people like you who make these host files better!

Also #411 #695

If we are talking about file size you can also see #459 (--compress ==> cf.)

  • If you want to stick with vanilla settings _with no 3rd-party app installations_, keep your hosts file, at least, below 1MB (or 34k domain lines and below).
  • If you want to go blocking more with only the hosts file _with no 3rd-party app installations_, disable your DNSCache, there is no other way! (or just compress though I haven't tried using a compressed hosts file)

First case: Tested on a Win10PC at work. I tried doing a 100k+ domains with DNSCache on, PC hanged for 5mins+ before being usable (can't connect properly to work's domain so it hanged so much).

Second case: DNSCache disabled, no problems with how many domains on the hosts file. No lags/delays, no regrets.
And no, I didn't to use any third-party apps in-parallel with the hosts file. I just don't want to, keeping vanilla as possible.

Yes, that win10 thing is really pissing me off so I just stopped updating the hosts file at work.

(using win8.1pro at home, hosts file works well)

Off topic:
oh those are cool!

But on my case, as an average power-user.
I only have my laptop, android phones, and my not-so-customizable router-modem at home, I am not able to setup those kinds (you know, no server thingy).

Though I am really interested setting up one ('cause it's damn tedious setting up all the hosts file on each device, rooted and non-rooted), thanks for the links, unbound looks easy to setup ;)

Thank you, everyone, for the excellent community response to this issue.

Some really cool people are watching this repo. I'm thankful for that!

I'd like to echo @CHEF-KOCH when he recommends Pi-Hole. Pi-Hole is a great project and a great reason for everybody to get into Raspberry Pi devices more generally.

Closing!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Laicure picture Laicure  路  3Comments

dhavalgoti24 picture dhavalgoti24  路  3Comments

onmyouji picture onmyouji  路  3Comments

AkiraJkr picture AkiraJkr  路  3Comments

scafroglia93 picture scafroglia93  路  3Comments