I have almost the same setup without adguardhome. The DNS resolution at home is either from the host file or the dnsmasq in the router. No wildcards in the DNS and certificate though. Vaultwarden works perfectly locally or remotely.
in fact I have found the reason of the problem, I was not using adguardhome
with windows 11, with ipv6 disable, there is a DNS Ipv6 on the first position and pointing to the box, and the certificat was mediarouter.home, it is not the certiifcat of the nas …
ok I try to use the hosts file, but I made a mistake, I put a wild card, like *.mydomain
but the wilcard is not supported in the hosts file…..
at the end I put the definition in the hosts file (without wild card) and it is working fine
but I didn’t find how to remove the dns ipv6 ??? I have add the dns of the nas in the ethernet definition, but with ipconfiig /all the ipv6 dns is still there, may be to disable the ipv6 with an entry in the registry ??
looking to the computer of my wife, running windows 11 also, the dsn ipv6 is not in the first position ??
but now I can use vaultwarden
thnaks again for your message, I can close this discussion