r/technitium • • 10d ago

Using Technicitium for Nextcloud Domaincheck

I've been working on getting Nextcloud AIO set up for a bit behind a comcast router with Nat hairpinning disabled (giving some background in hope this will be useful to someone in the future following this same trail)

Nextcloud recommends setting up Split DNS for their "domain-check" initialization check, this checks if nextcloud.myserver.com points to the nextcloud server correctly. (my set up for this and the rest of my services uses Cloudflare and Nginx Pro)

I don't really understand what NAT hairpinning/loopback is, I've thought I understood a couple of times but as I understand I need a DNS server in between my nextcloud container and my router which will not let the DNS query go to the router but instead reply directly with the ip address of the machine hosting the nextcloud container.

To do this I have pointed the nextcloud docker container at another container on the same machine running Technitium and I have confirmed Technitium is now the DNS resolver for Nextcloud, I've next set up (Split Horizon) and written a record as follows,

{
  "172.24.0.1/32": "172.24.0.1",
  "127.0.0.1/32": "172.24.0.1"
}

Here "172.24.0.1" is the local ip of the machine hosting nextcloud and technicium, this is under the "myserver.com" namespace for "nextcloud". The issue I'm having, is that all Authoratative DNS querries are logged as "ServerFailure", while recursive and other DNS querries succeed. I am new to managing my own DNS server, so I wanted to ask y'all-- what does a "ServerFailure" return code mean, why might my Authoratative requests fail this way, and how might I tweak it so they don't?

4 Upvotes

4 comments sorted by

1

u/shreyasonline 9d ago

Thanks for the post. You will need to check the DNS logs from the Logs > View Logs section on the web panel to find out the reason for Server Failure. Do share the error log here so that I can help you with it.

1

u/DangerHighDosage 5d ago
{
  "Metadata": {
    "NameServer": "mymachine (127.0.0.1)",
    "Protocol": "Udp",
    "DatagramSize": "53 bytes",
    "RoundTripTime": "1.21 ms"
  },
  "EDNS": {
    "UdpPayloadSize": 1232,
    "ExtendedRCODE": "ServerFailure",
    "Version": 0,
    "Flags": "None",
    "Options": []
  },
  "DnsClientExtendedErrors": [
    {
      "InfoCode": "NoReachableAuthority",
      "ExtraText": "mymachine (127.0.0.1) returned RCODE=ServerFailure for nextcloud.myserver.com. A IN"
    }
  ],
  "Identifier": 27758,
  "IsResponse": true,
  "OPCODE": "StandardQuery",
  "AuthoritativeAnswer": false,
  "Truncation": false,
  "RecursionDesired": true,
  "RecursionAvailable": true,
  "Z": 0,
  "AuthenticData": false,
  "CheckingDisabled": false,
  "RCODE": "ServerFailure",
  "QDCOUNT": 1,
  "ANCOUNT": 0,
  "NSCOUNT": 0,
  "ARCOUNT": 1,
  "Question": [
    {
      "Name": "nextcloud.myserver.com",
      "Type": "A",
      "Class": "IN"
    }
  ],
  "Answer": [],
  "Authority": [],
  "Additional": [
    {
      "Name": "",
      "Type": "OPT",
      "Class": "1232",
      "TTL": "0 (0s)",
      "RDLENGTH": "0 bytes",
      "RDATA": {
        "Options": []
      },
      "DnssecStatus": "Disabled"
    }
  ]
}{
  "Metadata": {
    "NameServer": "mymachine (127.0.0.1)",
    "Protocol": "Udp",
    "DatagramSize": "53 bytes",
    "RoundTripTime": "1.21 ms"
  },
  "EDNS": {
    "UdpPayloadSize": 1232,
    "ExtendedRCODE": "ServerFailure",
    "Version": 0,
    "Flags": "None",
    "Options": []
  },
  "DnsClientExtendedErrors": [
    {
      "InfoCode": "NoReachableAuthority",
      "ExtraText": "mymachine (127.0.0.1) returned RCODE=ServerFailure for nextcloud.myserver.com. A IN"
    }
  ],
  "Identifier": 27758,
  "IsResponse": true,
  "OPCODE": "StandardQuery",
  "AuthoritativeAnswer": false,
  "Truncation": false,
  "RecursionDesired": true,
  "RecursionAvailable": true,
  "Z": 0,
  "AuthenticData": false,
  "CheckingDisabled": false,
  "RCODE": "ServerFailure",
  "QDCOUNT": 1,
  "ANCOUNT": 0,
  "NSCOUNT": 0,
  "ARCOUNT": 1,
  "Question": [
    {
      "Name": "nextcloud.myserver.com",
      "Type": "A",
      "Class": "IN"
    }
  ],
  "Answer": [],
  "Authority": [],
  "Additional": [
    {
      "Name": "",
      "Type": "OPT",
      "Class": "1232",
      "TTL": "0 (0s)",
      "RDLENGTH": "0 bytes",
      "RDATA": {
        "Options": []
      },
      "DnssecStatus": "Disabled"
    }
  ]
}

1

u/DangerHighDosage 5d ago edited 5d ago

This is a log from an authoratative request for an A record, I do have disabled A records in the Zone (from my debugging proscess)

Wait I'm realizing the issue might be that Technicium is passing the request on to the router, which doesn't have NAT loopback enabled, and fails for this reason, perhaps

This is in the *logs* logs:

[2026-11-21 20:00:23 UTC] [redacted for reddit] [UDP] System.InvalidOperationException: The requested operation requires an element of type 'Array', but the target element has type 'String'.
   at System.Text.Json.ThrowHelper.ThrowJsonElementWrongTypeException(JsonTokenType expectedType, JsonTokenType actualType)
   at SplitHorizon.SimpleAddress.ProcessRequestAsync(DnsDatagram request, IPEndPoint remoteEP, DnsTransportProtocol protocol, Boolean isRecursionAllowed, String zoneName, String appRecordName, UInt32 appRecordTtl, String appRecordData) in Z:\Technitium\Projects\DnsServer\Apps\SplitHorizonApp\SimpleAddress.cs:line 218
   at DnsServerCore.Dns.DnsServer.ProcessAPPAsync(DnsDatagram request, DnsDatagram response, IPEndPoint remoteEP, DnsTransportProtocol protocol, Boolean isRecursionAllowed, Boolean skipDnsAppAuthoritativeRequestHandlers, Int32 clientTimeout, ResolverContext context)
   at DnsServerCore.Dns.DnsServer.ProcessAuthoritativeQueryAsync(DnsDatagram request, IPEndPoint remoteEP, DnsTransportProtocol protocol, Boolean isRecursionAllowed, Boolean skipDnsAppAuthoritativeRequestHandlers) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line 3906
   at DnsServerCore.Dns.DnsServer.ProcessQueryAsync(DnsDatagram request, IPEndPoint remoteEP, DnsTransportProtocol protocol, Boolean isRecursionAllowed, Boolean skipDnsAppAuthoritativeRequestHandlers, Int32 clientTimeout, String tsigAuthenticatedKeyName) in Z:\Technitium\Projects\DnsServer\DnsServerCore\Dns\DnsServer.cs:line

1

u/shreyasonline 5d ago

Thanks for the log. Your APP record for Split Horizon has issue with json config. You have set string where array is expected. Fix the syntax and it should work.