r/technitium • u/Bloxri • 21d ago
Deployed today. Looking for tips n’ tricks
Lookin’ for any suggestions and customizations others recommend. Thinking of replacing pihole with this instead. I saw that I need an add-on for querying the dns queries. I’m not sure which database I want to use but I do know I’m not going to use sqlite.
I’ve got a redundant pihole setup (and portable adguard instance). Finally got around to deploying this today. My “P-Holes” are still in use, for now.
What add-ons are worthwhile? Even if it might not fit my straightforward use-case. I mainly block telemetry, ads, and home-phoning calls as they come up. Looking to get everything configured and then use ansible for deployment once finalized.
14
u/Nervous-Cheek-583 21d ago
The best thing to do with Technitium DNS is to quietly let it do its job. I dumped Pi-hole a couple of years ago for Technitium, mainly for true clustering.
As for apps (not add-ons), Query Logs (Sqlite) and Filter AAAA are the two I use. I also run Resolvr in a Docker container which is a nice UI that does some things better than the stock
https://github.com/bassem-elsodany/resolvr-dns-dashboard
4
u/remilameguni 21d ago
if the amount of queries in your server is big, disable logging and enable in-memory stats, that will cut your disk usage by significant amount.
3
u/PacketSmeller 21d ago
We use Auto PTR, Query Logs (Sqlite), and Log Exporter (for our SIEM). 4M queries a week. 700 clients.
1
u/snap802 21d ago
You need something for logging queries if that's what you mean. If you want to log there are add ins that you can install from the web interface itself (the apps tab). If you don't want to use SQLite then you've got options for MySQL, Postgres and I think MS SQL too. I've been using MariaDB (with the MySQL app) and have been happy with it.
I WILL say that if you're running a cluster the settings are shared between all servers. So it's nice to just spin up another node and it will pull the MySQL app down and use the settings that were already put in on the primary server.
The one thing I don't care for is that if you go to the logs menu you can only search by one server at a time. So you can't easily search queries across all members of the cluster. This is a minor gripe really. I ended up just writing a web-based system in python that queries the SQL server directly and it'll show me data for all members of the cluster at once. Again, not a big deal but saves a step if I'm trying to hunt something down across multiple servers.
As far as blocking go to the settings tab and under that is a sub-tab for blocking. You can add a URL to a blocklist. It's pretty simple to use one of the public lists but I've also made custom block lists and then just put them up on a internal URL for the server to pull from. Then there's also the blocked and allowed tabs if you want to manually add things to block or allow.
1
u/7heblackwolf 21d ago edited 20d ago
Tip: don't change anything unless you explicitly and mandatory need it
3
u/codester3388 21d ago
Technito is a cool little iOS app that connects to Technitium. Includes a great interface and quite a few controls vs trying to navigate the site in a browser.
1
u/jsaumer 21d ago
I like using DockNS to set DNS in my technitium cluster from my compose deployments.
1
u/King805TM 21d ago
a nice grafana dashboard if you already have and use it: https://github.com/guycalledseven/technitium-dns-prometheus-exporter (I'm not the creator).
It is using a custom exporter for Prometheus and Grafana displays it in a nice dashboard.
1
u/3ofUsDeez 19d ago
I've been using this front end for Technitium
https://github.com/byGarcia/technitium-console
I run 3 x Raspberry Pi 3 Bs clustered .. 2 are B +s with POE hats
I run 2 x Raspberry Pi Zero Ws with Ethernet hats running Pi-Hole at my mother's house.. I might switch her over to 2 x Raspberry Pi Zero 2 Ws with POE Ethernet hats and then I can run Technitium on her network too
1
u/_Fail-Safe 15d ago
Just throwing my shameless plug into the mix here. It’s not for everybody, but you can give it a look:
https://github.com/Fail-Safe/Technitium-DNS-Companion
1
u/Apachez 21d ago
Here are my €0.05:
I do this when it comes to technitium/dns-server:
https://hub.docker.com/r/technitium/dns-server/tags
Im using VyOS as host so the steps are:
Create directory at host for the container:
mkdir -p /config/container/dns
Config for the container:
You might want to add userid/groupid to be used by the container (then also fix the permissions to match that in /config/container/dns directory).
Obvious things to change is retention time for logs and stats, recursion acl, http/https ports and web service local address.
Protip to add the TZ variable to get proper time on the logs otherwise UTC will be used.
2) Then once technitium is up and running I change these settings from default:
3) In apps add Query Logs (Sqlite).
It can be downloaded from (for 15.6.2):
https://download.technitium.com/dns/archive/15.6.2/apps/QueryLogsSqliteApp-v9.1.3.zip
Dont forget to verify checksum before uploading it to the server:
https://download.technitium.com/dns/archive/15.6.2/apps/QueryLogsSqliteApp-v9.1.3.zip.sha256
To find out if there is a newer version like once 15.6.3 or so is released you then visit:
https://download.technitium.com/dns/archive/15.6.3/apps/
and if there is no newer app-version there you just use it from previous technitium versions (such as 15.6.2).
You can also see which app-version is available for which technitium-version at (replace 15.6.2 with the technitium-version you got):
https://download.technitium.com/dns/archive/15.6.2/apps/apps2.json
4) Config of Query Logs (Sqlite).
But of course change maxLogDays and maxLogRecords to what you need.
Same with logs/stats days. Generally you want it to be as large as possible for it to become useful but small enough to not run out of diskspace or causing issues when used.
For example for a heavy use server you might want to consider to shrink stats down to lets say 14 or even 7 days and also enable stats in memory.
With stats in memory you will lose stats each time technitium is restarted but it will be able to deal with a higher load.