As a first thought double-check https://opnsense.box/system_general.php -> DNS Server settings should have no DNS server entries, "allow DNS to be overridden" set, "Do not use the DNS Forwarder" unset
You can also try https://opnsense.box/system_advanced_admin.php -> trigger "Disable DNS Rebinding Checks"