Unbound Configuration: Wild Card "A Record" Lookup

Started by kartman, August 08, 2025, 05:29:10 AM

Previous topic - Next topic
Apologies as I'm not sure how best describe my issue...

I'm using OPNsense + Unbound as my primary DNS and I have a DDNS domain. Everything has been fine but I'm trying to implement an NGinx server and now I have a DNS question. I've added an additional wildcard "A Record" to my domain that is "*local." and this is along side my main DDNS "A Record" of "mydomain.com".

1) When I do a NSLOOKUP of "mydomain.com" from within my home network, I get the return of my DDNS IP (assigned by my ISP)...
2) When I do the same for "local.mydomain.com" or "server.local.mydomain.com", I get "*** Can't find local.mydomain.com: No answer" (???)
3) I've confirmed that the lookup works when using a DNS server outside my network

Is there something about Unbound configuration that I'm missing? Any help would be appreciated.

Is the A record for local.mydomain.com a private (RFC1918) IP address? Unbound filters these (rebind protection). You can add it as a private domain in the advanced settings to allow private addresses.

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).