Homelab – Build a robust DNS foundation – Part 3 Optimizing Technitium DNS Server on Windows

Optimizing Technitium to make it a robust foundation. When name resolution hiccups, the whole household feels it faster than a power cut. DNS is the nervous system of any homelab and you should keep an eye on it.

After spinning up a validating resolver (Unbound) in Part 1 and getting Technitium running on Windows in Part 2, we will tune Technitium DNS Server on Windows Server 2025 in Part 3 to block advertisements using DNS sinkholes, switch on structured query logging with the Query Logs (Sqlite) app and configure some retentions.

We’ll close with a pragmatic Technitium vs. Pi-hole comparison and a blocklist review so you avoid noisy, low-value feeds. Sources and further reading are linked throughout.

What you’ll learn about Optimizing Technitium

Lets look into these area’s to give you more features, benefits and understand the solution we implemented a bit deeper. What you’ll learn about Optimizing Technitium today:

  • How the Query Logs (SQLite) add-in gives you a searchable audit trail without filling your SSD.
  • How to block ads, trackers, and malware with quality lists instead of list sprawl.
  • Where Technitium leaves Pi-hole behind—and where it doesn’t.
  • Which blocklists I use and how many are “enough”

Logging – Query Logs (SQLite)

Personally I am using the simple approach. You can choose between MySQL, SQL Server and the Sqlite Approach in the Appstore. If you have preferences or you want to further use the logfiles, pick MySQL or SQL Server. I only use the logfiles within the GUI and for this Sqlite is the best approach. Go to Apps -> App Store and choose Sqlite.

Query Logs Sqlite Install - Step 1 Optimizing Technitium
Query Logs Sqlite Install

Once you enabled that you will have logfiles and a query logs option available.

Query Logs Sqlite Install
Query Logs Sqlite Install

Depending on your requirements you should configure your logfile and it’s retention. In my private world I can run Max Log File Days of 365, but when using this in a small business or public organization, please keep the value lower and verify the setting with your Data Privacy responsible contacts.

Max Log File Days Technitium
Max Log File Days Technitium

DNS sinkhole: block advertisement, pull in security

How does Technitium block advertisement? Technitium replies with 0.0.0.0 for blocked domains. The quality of your lists matters far more than their number. This will reduce the amount of advertisement you see in Applications and on website dramatically.

Why does this beat a static hosts file?
Technitium tracks statistics per client, lets you whitelist via policy, and refreshes automatically—no cron jobs, no SSH. You can also troubleshoot issues a lot easier, when you use the logfiles to find blocked DNS names.

Technitium vs. Pi-hole – the 2025 view

Pi-hole is still a very good ad-block appliance, but on Windows you need two extra containers (Unbound + cloudflared) and you still get no authoritative zones. Technitium is a DNS operating system with the following features: authoritative, recursive, DoH/DoT/DoQ, policies and integrated apps.

If you want one box, pick Technitium. If you love Linux and a huge community, stick with Pi-hole. Pi-Hole also comes with nice Apps for iPad’s.

Blocklists – what stays, what goes

These are my blocklists, that I use today:

https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts
http://code.google.com/apis/safebrowsing/
https://openphish.com/feed.txt
https://blocklistproject.github.io/Lists/malware.txt
https://blocklistproject.github.io/Lists/scam.txt
https://lists.blocklist.de/lists/all.txt

Verify you have Blocking enabled. Check these settings in your Technitium.

Technitium Enable Blocking
Technitium Enable Blocking

To load these lists open your Technitium Admin portal and go to settings -> blocking or use a direct link to the page: http://192.168.0.251:5380/#settingsTabPaneBlocking (make sure you change 192.168.0.251 with the IP of your Technitium DNS server. Once you made any changes click on save settings and also flush cache.

If I would start today, I would most likely start with these three blocklists:

Allow Block Lists in Technitium  - Step 2 Optimizing Technitium
Allow Block Lists in Technitium

Using these lists I also require some whitelists for AI and some applications to work. You can download that list here on my github repository: Whitelist-Technitium-2025.txt

To load my whitelist or your backup open i.e. my Whitelist Textfile and copy all content *ctrl+a ctrl+v) open your Technitium Admin portal and go to Allowed and copy all content there or use a direct link to the page: http://192.168.0.251:5380/#mainPanelTabPaneAllowedZones (make sure you change 192.168.0.251 with the IP of your Technitium DNS server. Once you made any changes click on save settings. Don’t click flush here, as it will delete all your information on the Allowed URLs.

Whitelist URLs  - Step 3 Optimizing Technitium
Whitelist URLs

Important: More Allow / Blocklists are not good. Stick to a few good ones and identify which ones do work for you or not. Also verify that these are updates every once in a while and are not abandoned.

Conclusion

You can increase security and block advertisements by a quick configuration and use blocklist from the internet. Logfiles are a must and will help you configure the whitelists required. Use my whitelist, if you are working in a homelab and have a family using your Technitium to block advertisements.

If you are interested in this topic or Adaptive cloud, please follow me on LinkedIn, Bluesky or check my newly created Adaptive Cloud community on Reddit.

Spread the knowledge
Avatar for Andreas Hartig
Andreas Hartig - MVP - Cloud and Datacenter Management, Microsoft Azure

Related Posts

Microsoft Terminal and how to customize 300x300 2025

My new Customized Windows Terminal settings.json 2025

A Customized Windows Terminal is fun and shows ownership. That’s why every once in a while I have to improve my personal terminal configuration set. This time I have updated…

Spread the knowledge
Read more
Shadowrun style cyber dragon Test Latency to Azure Regions 2025

Test Latency to Azure Regions 2025

Test Latency to Azure Regions, if users feel your app is “slow,” as nine times out of ten they’re feeling latency, not CPU. In Azure, that latency comes from three…

Spread the knowledge
Read more
Shadowrun style cyber dragon working as an IT architect in a not too dark office, glowing monitors, Shawl and Rust logo on the centre screen

Create a Service on Windows Server 2025

Service on Windows Server 2025? Shouldn’t that happen automatically? Sometimes you want to run an executable as a service. Normally you get this feeling, when services you rely on do…

Spread the knowledge
Read more
a dragon IT architect from the shadowrun world smoking a pipe with a sherlock holmes outfit in a comfortable chair smoking a pipe and reading a book labeled T Shaped Profile

T-Shaped Profile – My unique journey from Helpdesk to Enterprise Architecture

The Evolution of a T-Shaped IT Professional In the world of IT, specialization is often seen as the key to success. Yet, my career path has proven that breadth and…

Spread the knowledge
Read more
IT and OT and a dragon IT architect from the shadowrun world walking through a production plant taking notes without humans

IT and OT: Bridging the Gap with Modern Infrastructure Management

For decades, Operational Technology (OT) and Information Technology (IT) have operated in parallel silos, each serving distinct purposes. However, the rise of IoT, Industry 4.0, and cloud-driven automation has forced…

Spread the knowledge
Read more
Azure Service Lifecycle and a dragon IT architect from the shadowrun world reading an ebook on a notebook without showing text on the book and with Azure icons on the book cover

Azure Service Lifecycles: Understanding Preview and GA Releases – 2025

Azure Service Lifecycles are an important part of your roadmapping. When using them you’ll often encounter terms like Private Preview, Public Preview, and General Availability (GA). Understanding these phases is…

Spread the knowledge
Read more