When you have a dns-server configured like this
to match all subdomains for convenience, the client unexpectedly will find aCode:$ORIGIN domain.tld. www IN A 127.0.0.1 * IN CNAME www
which is being interpreted as SRV pointing to random ports (I've seen most of them being above of 40000) resulting in a failed connection although there is a default server running on port 9987.Code:_tsdns._tcp.domain.tld $TTL IN CNAME www.domain.tld.
Is this working as intended?