r/technitium • • Aug 04 '24

Block countries ?

Hello,

How i can block countries not to use my technitium dns server ?

Thank you

0 Upvotes

8 comments sorted by

8

u/Raithmir Aug 04 '24

Don't expose your DNS server to the internet.

1

u/shreyasonline Aug 05 '24

Thanks for the post. There is no option to do that. Its recommended to not expose your DNS server running as a recursive resolver to public Internet.

Let me know your exact scenario so that I can provide better suggestions.

-1

u/chmichael7 Aug 05 '24 edited Aug 05 '24

atm i block IPs. I tried to use CIDR but i has 255 line limit

1

u/shreyasonline Aug 05 '24

Are you running a public DNS resolver?

1

u/chmichael7 Aug 05 '24

Yes it's public on my private VPS and seems the bots are finding it and using DNS amplification DDoS attacks that's why i want to cut off access. Atm i am using the firewall to block the IPs manually.

3

u/shreyasonline Aug 05 '24

If you need to run it on public IP then you need to make sure that you have configured query rate limiting (QPM Limit) option in Settings to limit any abuse.

You should also install the Drop Requests app which can be configured to drop requests which have certain domain name and/or a specific type. This can be used to stop abuse requests that use a specific domain name. It has also option to block networks which can be used if you know specific networks.

Blocking based on country is not feasible. Firstly, you will need to buy IP location database license which are very expensive. Even if you buy it and there is a feature for it, it may occur that it starts blocking your own IP addresses since these databases are not accurate.

1

u/chmichael7 Aug 05 '24

I see. Thank you

2

u/shreyasonline Aug 06 '24

You're welcome.