Going to quote myself from one of the threads you linked
This is the problem. You can see it in the output of the first command. Your DNS server is returning an answer for an A request for test.lab.lan but is returning NXDOMAIN for the follow-up AAAA request on that domain (ipv6).
This means your DNS server is not following DNS spec correctly. DNS servers are only supposed to return NXDOMAIN if the name truly does not exist for all types of queries. If it exists but there are no answers for some types of queries (like say because you don’t use ipv6) then it should return a NOERROR response without any answers.
Alpine based systems like HA require DNS servers follow the DNS spec in this regard for the reasons I mentioned above. If your DNS server returns NXDOMAIN for any queries on a name then HA, most of HAs addons and any other Alpine based systems will assume the name does not exist for all queries.