-
Notifications
You must be signed in to change notification settings - Fork 921
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
Bug: large number of addDomainSpoof lines break daemon start #5433
Comments
This is systemd considering your dnsdist startup failed because it took too long. SSD and multicore don't help here - this all happens on a single CPU core. Perhaps you can increase the timeout in your systemd unit file? |
The bigger thing is that our rules are not intended for having 30000 lines (which we have not documented, by the way). The better way to do this is like this (more or less):
This will 1) work 2) be much much faster. |
@ahupowerdns I agree, I was surprised to read the cutoff point might be at 200 already, I would expect us to be able to do thousands if not tens of thousands within the few seconds that is no doubt our systemd timeout default. |
-->
To compare:
with include: /etc/unbound/unbound-local-block.conf I'm not sure how to fix this. |
Hi h3ik0, try: |
BTW I want to replace unbound. The time was to show the machine has no performance issue. No point to be angry please |
Ok, apologies. Glad it worked. We are looking into why adding rules is so slow at larger numbers. |
Thats great thank you. For your information: dig request time from cache: unbound 6ms dnsdist 2ms. Cool. Good work. |
This addresses #5433, which featured a user attempting to create 30k rules.
I try to build an ad- malware- and tracker-blocking dns-resolver.
There are 30807 lines of domains in a domains.txt (1 domain = 1 line)
Merged source files:
https://adaway.org/hosts.txt
http://hosts-file.net/ad_servers.txt
http://www.malwaredomainlist.com/hostslist/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php
http://someonewhocares.org/hosts/hosts
http://winhelp2002.mvps.org/hosts.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt
The dnsdist.conf:
I always get this in syslog:
With a less number of lines lf.e. 200 all is working fine.
Machine is a virtual root server with ssd and multicore.
BTW: there is also no way to reduce lines, because Regex f.e. m/^ads?./ ist not supported for addDomainSpoof.
The text was updated successfully, but these errors were encountered: