Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file is too big, blocks isp, dns client, cant be renamed or deleted #517

Closed
zoulztealer opened this issue Aug 11, 2019 · 14 comments
Closed

Comments

@zoulztealer
Copy link

well, thanks for the gathering of all the bad hosts, but actually this file is not applicable. as soon as i installed it (windows 10 education 1903) it froze my ic and i could not remove or rename the file anymore, because it was blocked / in use by the dns client. had to reboot to safe mode to get rid of it again. perfect example of a host file that has become "too good".

@funilrys
Copy link
Member

Hi @zoulztealer,

sorry to hear about that. Do you have any idea about how we can improve in the future? I'm interested to hear about any inputs.

My idea is to provide in near the future a way of allowing people to get their own "custom" list based on all data we have into our backend.

Is that a possible solution for Windows 10 users?

Thanks for your feedback.

Cheers,
Nissar

@dnmTX
Copy link

dnmTX commented Aug 12, 2019

@funilrys one solution is to compress it(at least 6 domains per line),but still,such a large lists,i'm not sure that it'll help much.

My idea is to provide in near the future a way of allowing people to get their own "custom" list based on all data we have into our backend.

This is probably the best there is,not only for Windows users but for everyone.

P.S. We need to start researching and place description on each list so to be easier for users to decide which one is relevant to them.Right now is more like a wild guess if you ask me.

@zoulztealer
Copy link
Author

maybe a seperate app could manage and incooperate the file effectively. the windows framework alone will probably not be suitable for this.

@spirillen
Copy link
Contributor

spirillen commented Aug 27, 2019

A little hack for @zoulztealer as you are degraded to windows i suggest you installs the Unbound which maintain a windows version of there DNS server, very small, fast and nimble :)

Make a small script that rewrites the hosts file into a rpz.db file (text file (UTF-8))

what you have to do it converting

[127.0.0.1|0.0.0.0] some-fucked-up.tld

Into

local-zone: "facebook.com" always_nxdomain
local-zone: "google.com" always_nxdomain
local-zone: "gstatic.com" always_nxdomain
local-zone: "improving.duckduckgo.com" always_nxdomain
local-zone: "googlesyndication.com" always_nxdomain
local-zone: "google-analytics.com" always_nxdomain
local-zone: "googleapis.com" always_nxdomain
local-zone: "googledomains.com" always_nxdomain
local-zone: "doubleclick.net" always_nxdomain
local-zone: "microsoft.com" always_nxdomain

Now you have a very fast self hosted recursor that queries the root servers it self, no DNS tracking by your school or ISP... COOL

PS: Remember to change your network setup to use you freshly install DNS server on 127.0.0.1/::1

PPS: You might find a clue on how to do it in my toolbox, but that is for linux...

@zoulztealer
Copy link
Author

@spirillen you know i have to use windows for gaming because linux is not good enough yet. ive been trying it since 11 years now lol and waiting on it to get better, but see even valve has a hard time at making a os for gaming out of it. its not bad and runs great in parts, tbh i love linux actually, but its just not where it has to be yet. btw i get your tip, but id rather use vpn or tails then if needed. on windows id just change my dns server of the tcp ip v4 / v6 protocol to have similar effect and easy to do. still not sure if the big file still would not freeze the app or windows. cheers ;)

@spirillen
Copy link
Contributor

spirillen commented Aug 29, 2019

or gaming because linux is not good enough yet

Shhh, don't tell my well playing games on linux that 😉

But a little update to the previously post.

It turns out that @ScriptTiger already do the RPZ conversion from Steven Blacks lists https://scripttiger.github.io/alts/ which increase the import that way around... Just a cent of info :)

🍻

@zoulztealer
Copy link
Author

zoulztealer commented Aug 29, 2019

so i take the file from script tiger and can import it into unbound? stuff like dota2 runs great on linux. i wish it would run all games that run on win though. :'( ps in terms of unboud would there be a way to use this to improve general dns lookup speed in windows and leave ip blocking by aside?

@spirillen
Copy link
Contributor

@zoulztealer yes to all :)

My little sister who is running on a win10 home have the Unbound installed with the RPZ running (100/100mb fiber) and her peers times have gone down on WOW, also because I have set it up to block 20% of her DNS queries to Nvidia tracking etc.

So yes, the results with

        prefetch: yes
        prefetch-key: yes

        qname-minimisation: yes
        cache-min-ttl: 3600
        infra-cache-numhosts: 1000000

Have lowered her DNS query time via google DNS to about the half with her own unbound.

For a note: The reason I suggest the unbound on windows, is that most of the users here might be running on a Home edition rather than a pro edition, and that Unbound is the only really fast and reliable third party DNS server I have found that can be installed on a home edition. (Feel very free to update this knowledge)

You can havest a starter config to unbound on windows home here and here for man unbound (Configuration of unbound)

@zoulztealer
Copy link
Author

zoulztealer commented Aug 29, 2019

thanks looks really nice. there is a lot of tracking / telemtry with gaming, tried a blocklist before (forgot the name of the tool...) and some games had real issues. ive killed nvidia telemtry service, tasks etc with autoruns. not sure if you heard of this: https://www.guru3d.com/files-details/nvidia-driver-slimming-utility.html ive installed unbound and can already tell a difference at site access, i believe, like much faster. it runs as a service with a config, right? tweaking it right now.

Guru3D.com
Download the NVIDIA driver slimming utility, it is exactly as it says so you can trim down your NVIDIA driver install base. ...

would this work? im curious about the "m" / megabyte for the cache settings.

# Unbound configuration file on windows.
# See example.conf for more settings and syntax
server:
	# verbosity level 0-4 of logging
	verbosity: 0

	# On windows you may want to make all the paths relative to the
	# directory that has the executable in it (unbound.exe).  Use this.
	#directory: "%EXECUTABLE%"

	# if you want to log to a file use
	#logfile: "C:\unbound.log"
	# or use "unbound.log" and the directory clause above to put it in
	# the directory where the executable is.

	# on Windows, this setting makes reports go into the Application log
	# found in ControlPanels - System tasks - Logs 
	#use-syslog: yes

	# on Windows, this setting adds the certificates from the Windows
	# Cert Store.  For when you want to use forwarders with TLS.
	#tls-win-cert: yes

	#num threads
	num-threads 16

	#udp fast
	so-reuseport: yes

	#cache
	msg-cache-slabs: 32m
	rrset-cache-slabs: 32m
	infra-cache-slabs: 32m
	key-cache-slabs: 32m

	# Larger socket buffer.  OS may need config.
	so-rcvbuf: 8m
	so-sndbuf: 8m

	# more cache memory, rrset=msg*2
	rrset-cache-size: 100m
	msg-cache-size: 50m


remote-control:
	# If you want to use unbound-control.exe from the command line, use
	#control-enable: yes
	#control-interface: 127.0.0.1
	#control-use-cert: no


server: auto-trust-anchor-file: "C:\Program Files\Unbound\root.key"

@spirillen
Copy link
Contributor

Seems right, but a few tweaks could help.

from above you see this

# Will make sure the previously cached
# Queries is always fresh, and by that keep
# DNS Query times at 0msec
prefetch: yes

# Rather optional, but actually nice on very slow
# ADSL connection
prefetch-key: yes

# Optimize your privacy
qname-minimisation: yes

# To raise the cache time for non RFC standard TTL.
# This is from most CDN with TTl @ 30sec , and on daily
# basic useless. Here rewrite TTl to 1 hour 
cache-min-ttl: 3600

# To leave room for cashing all "always_nxdomain"
infra-cache-numhosts: 1000000

Second to this you should lower the number of threads to something like 2-4 as 16 is server sized to 1 mill queries a second

Third, Congratulation, you now have a fully functional DNS recursor on your home network that can help protect all of your devices... change your DNS in your DHCP server (properly router)

Fouth: when configuring you like to set verbose: 2 and enable logging, and when you happy disable both :)

@ScriptTiger
Copy link

@zoulztealer, I'm with you on the Windows gaming versus Linux. Games released for Xbox (named for DirectX Box) and Windows are obviously optimized for DirectX, which Linux tries to emulate but simply can't efficiently because all the libraries, etc., are all proprietary and closed source and they can only make guesses about how it actually works internally. OpenGL is supposed to have many improvements over DirectX, but those games simply are not optimized for it since they were designed with DirectX in mind from the ground up.

This isn't a statement of whether DirectX is better or worse than OpenGL, it's just the fact that game developers developing for Xbox and Windows releases optimize their games for DirectX. Why? Well, because obviously Xbox only runs DirectX, hence the name DirectX Box, so they're not going to waste money optimizing for OpenGL on top of that since it's not the majority of users and game developing is damn expensive and resource intensive from the get-go and optimizing for two APIs at the same time just doesn't work out economically.

Linux gamers can boast all day long about how much faster gaming is on Linux versus Windows, but it really depends on the game and how it was designed. Yes, it's true that games optimized for OpenGL running on a streamlined Linux box geared towards gaming will run faster than it ever could on a Windows system. But when you throw in games that you have to emulate DirectX with on Linux because the experience gets jacked up using OpenGL because it wasn't written with that API in mind, your performance and overall experience seriously suffers and this is an undeniable fact.

@spirillen
Copy link
Contributor

spirillen commented Aug 29, 2019

@ScriptTiger your right how sad it ever is...

But i still awaiting the day where games starts getting developed for *nix over Microsoft... I'll bet Microsoft would loos a lot of terrain as they would have like 1% harvested(stolen) privacy data to offer there customers

That day, I'll get back into the industry 👨‍💼

@zoulztealer
Copy link
Author

%)

@stale
Copy link

stale bot commented Oct 28, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 28, 2019
@stale stale bot closed this as completed Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants