TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.48k stars 431 forks source link

dotnet cannot use 200m to de-advertise files #575

Closed Potterli20 closed 1 year ago

Potterli20 commented 1 year ago

Yes, there is no way to use 200m files

Potterli20 commented 1 year ago

https://file-cn.trli.club:2083/ad-hosts/ad-hosts-pro/ad-hosts.txt https://file-git.trli.club/ad-hosts/hosts

ShreyasZare commented 1 year ago

Thanks for the post. I did not understand anything in the issue. Please elaborate it.

Potterli20 commented 1 year ago

Thanks for the post. I did not understand anything in the issue. Please elaborate it.

My AD size is up to 200m, but the 200m file cannot be used as a complete AD file on dotbet

ShreyasZare commented 1 year ago

Thanks for the post. I did not understand anything in the issue. Please elaborate it.

My AD size is up to 200m, but the 200m file cannot be used as a complete AD file on dotbet

What is AD exactly? Is 200m size of file i.e. 200MB? Where you cannot use the file? Is this related to dotnet or the DNS Server?

Potterli20 commented 1 year ago

Thanks for the post. I did not understand anything in the issue. Please elaborate it.

My AD size is up to 200m, but the 200m file cannot be used as a complete AD file on dotbet

What is AD exactly? Is 200m size of file i.e. 200MB? Where you cannot use the file? Is this related to dotnet or the DNS Server?

Even if the adhosts file exceeds 200m, it cannot be used normally in the dotnet program, and the number is not complete. The normal number is 600w or more

Sorry, I come from China, the translation software is not very good, there is no way to let you understand

ShreyasZare commented 1 year ago

My AD size is up to 200m, but the 200m file cannot be used as a complete AD file on dotbet

What is AD exactly? Is 200m size of file i.e. 200MB? Where you cannot use the file? Is this related to dotnet or the DNS Server?

Even if the adhosts file exceeds 200m, it cannot be used normally in the dotnet program, and the number is not complete. The normal number is 600w or more

Sorry, I come from China, the translation software is not very good, there is no way to let you understand

Yes, I understand that you are using translation software so there are many problems with it. I would recommend that you use full sentences that describe the issue so that the translation is a bit better. Right now, you are entering short sentences which the translation software is screwing up with the context so its not legible.

Potterli20 commented 1 year ago

My AD size is up to 200m, but the 200m file cannot be used as a complete AD file on dotbet

What is AD exactly? Is 200m size of file i.e. 200MB? Where you cannot use the file? Is this related to dotnet or the DNS Server?

Even if the adhosts file exceeds 200m, it cannot be used normally in the dotnet program, and the number is not complete. The normal number is 600w or more Sorry, I come from China, the translation software is not very good, there is no way to let you understand

Yes, I understand that you are using translation software so there are many problems with it. I would recommend that you use full sentences that describe the issue so that the translation is a bit better. Right now, you are entering short sentences which the translation software is screwing up with the context so its not legible.

That is, the adhosts file exceeds 200M and cannot be used normally on the dotnet program, and also shows the incomplete number, and the normal number is more than 600w.

My de-ad rule has gone to 200m in size, but the 200m file can't be used on dotnet to de-advertise the full de-ad file.

ShreyasZare commented 1 year ago

That is, the adhosts file exceeds 200M and cannot be used normally on the dotnet program, and also shows the incomplete number, and the normal number is more than 600w.

My de-ad rule has gone to 200m in size, but the 200m file can't be used on dotnet to de-advertise the full de-ad file.

https://file-cn.trli.club:2083/ad-hosts/ad-hosts-pro/ad-hosts.txt

I tried the above host file which is 206MB in size on my laptop and its working well. I tried it using both the Settings > Blocking section options, and also using the Advanced Blocking app. In both cases its loading 6,543,191 domain names within 10-12 seconds and using around 1.1 GB memory.

What is the hardware config of your server that you are trying this on?

Potterli20 commented 1 year ago

That is, the adhosts file exceeds 200M and cannot be used normally on the dotnet program, and also shows the incomplete number, and the normal number is more than 600w. My de-ad rule has gone to 200m in size, but the 200m file can't be used on dotnet to de-advertise the full de-ad file.

https://file-cn.trli.club:2083/ad-hosts/ad-hosts-pro/ad-hosts.txt

I tried the above host file which is 206MB in size on my laptop and its working well. I tried it using both the Settings > Blocking section options, and also using the Advanced Blocking app. In both cases its loading 6,543,191 domain names within 10-12 seconds and using around 1.1 GB memory.

What is the hardware config of your server that you are trying this on?

I used 4c4g on a virtual machine and the download was incomplete. I've used Advanced Blocking, but it's going to be updated 24 hours. I'll see if Advanced Blocking works. No, I'll use pihole back, alas. I feel that no program can use up to 200m to remove advertising files.

Potterli20 commented 1 year ago

{ "enableBlocking": true, "blockListUrlUpdateIntervalHours": 24, "networkGroupMap": { "0.0.0.0/0": "everyone", "[::]/0": "everyone" }, "groups": [ { "name": "everyone", "enableBlocking": true, "allowTxtBlockingReport": true, "blockAsNxDomain": true, "blockingAddresses": [ "255.255.255.255", "::1" ], "allowed": [], "blocked": [], "allowListUrls": [ "https://file-git.trli.club/allow/Domains" ], "blockListUrls": [ "https://file-cn.trli.club:2083/ad-hosts/ad-hosts-pro/ad-domains.txt", "https://file-git.trli.club/ad-hosts/hosts" ], "allowedRegex": [], "blockedRegex": [], "regexAllowListUrls": [], "regexBlockListUrls": [ "https://file-git.trli.club/ad-hosts/adblock" ], "adblockListUrls": [] } ] }

liang-hiwin commented 1 year ago

There are too many rules. There is no need for so many rules.

Potterli20 commented 1 year ago

There are too many rules. There is no need for so many rules.

Not many rules, just as an interest, do a collection of rules

ShreyasZare commented 1 year ago

Closing this issue since the DNS server is able to load 200MB+ size hosts file without any issues.