u/jaykumar2005

Technitium selfsign certificate - untrusted root

I have the technitium cluster configured, with second node joined to the cluster. Initial zone sync seem to work but now status of primary node is unreachable from secondary

I see follwoing in the logs

[2026-05-17 11:22:52 Local] Heartbeat failed for Primary node 'technitium01.technitium.local (192.168.5.40, 192.168.50.40, 192.168.30.40, 192.168.40.40)'.
System.Net.Http.HttpRequestException: The SSL connection could not be established since the TLS certificate failed DANE validation: no matching TLSA record was found, or the certificate had one or more issues [RemoteCertificateNameMismatch, RemoteCertificateChainErrors]. (technitium01.technitium.local:53443)
 ---> System.Security.Authentication.AuthenticationException: The SSL connection could not be established since the TLS certificate failed DANE validation: no matching TLSA record was found, or the certificate had one or more issues [RemoteCertificateNameMismatch, RemoteCertificateChainErrors].
   at TechnitiumLibrary.Net.Http.Client.HttpClientNetworkHandler.ValidateDane(X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors, IReadOnlyList`1 tlsaRecords) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Http\Client\HttpClientNetworkHandler.cs:line 515
   at TechnitiumLibrary.Net.Http.Client.HttpClientNetworkHandler.<>c__DisplayClass11_0.<ConnectCallback>b__0(Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Http\Client\HttpClientNetworkHandler.cs:line 162
   at System.Net.Security.SslStream.VerifyRemoteCertificate(RemoteCertificateValidationCallback remoteCertValidationCallback, SslCertificateTrust trust, ProtocolToken& alertToken, SslPolicyErrors& sslPolicyErrors, X509ChainStatusFlags& chainStatus)
   at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
   at TechnitiumLibrary.Net.Http.Client.HttpClientNetworkHandler.ConnectCallback(SocketsHttpConnectionContext context, CancellationToken cancellationToken) in Z:\Technitium\Projects\TechnitiumLibrary\TechnitiumLibrary.Net\Http\Client\HttpClientNetworkHandler.cs:line 207
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
reddit.com
u/jaykumar2005 — 5 days ago

Installation on OPNsense/Freebsd - sqlite issue

I understand .NET is not officially support on Freebsd.

Got Technitium up and running, web interface is accessible, DNS resolution and blocking works fine.

Only issue I am encountering at the momember is SQLite suppport. Any attempt to create/join cluster causes following error. Any way to fix this?

[2026-05-16 12:56:46 Local] [192.168.5.195:51369] System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: C

Or when trying to enable query log

[2026-05-16 12:33:01 Local] DNS App [Query Logs (Sqlite)]: System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.
 ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
Cannot open "/opt/dotnet/shared/Microsoft.NETCore.App/10.0.3/e_sqlite3.so"
Cannot open "/opt/technitium/dns/config/apps/Query Logs (Sqlite)/e_sqlite3.so"
Shared object "e_sqlite3.so" not found, required by "dotnet"
Cannot open "/opt/dotnet/shared/Microsoft.NETCore.App/10.0.3/libe_sqlite3.so"
Cannot open "/opt/technitium/dns/config/apps/Query Logs (Sqlite)/libe_sqlite3.so"
Shared object "libe_sqlite3.so" not found, required by "dotnet"
Cannot open "/opt/dotnet/shared/Microsoft.NETCore.App/10.0.3/e_sqlite3"
Cannot open "/opt/technitium/dns/config/apps/Query Logs (Sqlite)/e_sqlite3"
Shared object "e_sqlite3" not found, required by "dotnet"
Cannot open "/opt/dotnet/shared/Microsoft.NETCore.App/10.0.3/libe_sqlite3"
Cannot open "/opt/technitium/dns/config/apps/Query Logs (Sqlite)/libe_sqlite3"
Shared object "libe_sqlite3" not found, required by "dotnet"

   at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
   at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
   at SQLitePCL.Batteries_V2.Init()
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Data.Sqlite.SqliteConnection..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString)
   at QueryLogsSqlite.App.InitializeAsync(IDnsServer dnsServer, String config) in Z:\Technitium\Projects\DnsServer\Apps\QueryLogsSqliteApp\App.cs:line 414
   at DnsServerCore.Dns.Applications.DnsApplication.InitializeAsync() in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\Applications\DnsApplication.cs:line 208
[2026-05-16 12:33:01 Local] DNS Server successfully loaded DNS application: Query Logs (Sqlite)
reddit.com
u/jaykumar2005 — 6 days ago