*** myrouter.localdomain: OPNsense 23.1.9 *** LAN (igc1) -> v4: 192.168.1.1/24 v6/t6: 2a0d:3344:12b:c900:62be:b4ff:****:****/64 Starlink (igc0) -> v4/DHCP4: 100.82.***.***/10 v6/DHCP6: fe80::62be:b4ff:****:****%igc0/64
root@myrouter:~ # ping google.com# delay of ~20-30 secondsPING google.com (142.250.200.14): 56 data bytes64 bytes from 142.250.200.14: icmp_seq=0 ttl=119 time=43.432 ms64 bytes from 142.250.200.14: icmp_seq=1 ttl=119 time=58.192 ms
root@myrouter:~ # ping 142.250.200.14PING 142.250.200.14 (142.250.200.14): 56 data bytes64 bytes from 142.250.200.14: icmp_seq=0 ttl=119 time=48.951 ms
I haven't configured the OPNSense DNS so I guess it's using ISP DNS. I've left the "DNS Servers" section blank under System->Settings->General.
Thanks for the reply. DNS lookup worked with the following result:Even though it says ~28ms query time, it took about 20-30 seconds from clicking the button to the results appearing.
Re Unbound, it's empty for DNS over TLS and Query forwarding; but I'm not using Unbound afaik ("enable" is unchecked in the Unbound settings).
For DNS under DHCP, on the LAN interface I have the router IP set as the DNS server, as I'm running Adguard Home as my DNS server on the same box. Devices on the LAN don't seem to have any trouble with DNS lookups or slowness - it's just with the OPNSense box itself, e.g. if I ssh into it and perform a ping to some external domain.
This is the Adguard Home settings in the OPNSense admin:
Are you running dual stack? How is your IPv6 configured?
What happens if you do a query but put 127.0.0.1 in the Server field?
QuoteAre you running dual stack? How is your IPv6 configured?Yes, I am running dual stack. WAN is set to DHCPv6 for ipv6. ISP is Starlink. Here is the ipv6 settings for WAN, which I got from following a guide somewhere:
QuoteWhat happens if you do a query but put 127.0.0.1 in the Server field?it times out and I get an error: "Error: error sending query: Could not send or receive, because of network error"However, if I use 1.1.1.1 or 8.8.8.8 it works immediately