@Spyderturbo007 said in Slow to Resolve One Address:
Name server Query time
127.0.0.1 10276 msec
71.242.0.12 28 msec
So pfsense could get an answer from that 71.242.0.12 but clients asking unbound on pfsense that would never be used, out of the box unbound is a resolver - meaning directly talks to the roots and then works down to the actual authoritative ns for a domain.
You can do a dig + trace on pfsense to see where its getting hung up, maybe your network is having a hard time talking the authoritative ns for that domain.
I am not having any issues with it.. here is dig +trace from my pfsense.
[23.05.1-RELEASE][admin@sg4860.local.lan]/: dig -4 gis.dauphincounty.org +trace +nodnssec
; <<>> DiG 9.18.13 <<>> -4 gis.dauphincounty.org +trace +nodnssec
;; global options: +cmd
. 71187 IN NS g.root-servers.net.
. 71187 IN NS h.root-servers.net.
. 71187 IN NS i.root-servers.net.
. 71187 IN NS j.root-servers.net.
. 71187 IN NS k.root-servers.net.
. 71187 IN NS l.root-servers.net.
. 71187 IN NS m.root-servers.net.
. 71187 IN NS a.root-servers.net.
. 71187 IN NS b.root-servers.net.
. 71187 IN NS c.root-servers.net.
. 71187 IN NS d.root-servers.net.
. 71187 IN NS e.root-servers.net.
. 71187 IN NS f.root-servers.net.
;; Received 239 bytes from 127.0.0.1#53(127.0.0.1) in 0 ms
org. 172800 IN NS b0.org.afilias-nst.org.
org. 172800 IN NS c0.org.afilias-nst.info.
org. 172800 IN NS a0.org.afilias-nst.info.
org. 172800 IN NS d0.org.afilias-nst.org.
org. 172800 IN NS a2.org.afilias-nst.info.
org. 172800 IN NS b2.org.afilias-nst.org.
;; Received 486 bytes from 192.33.4.12#53(c.root-servers.net) in 11 ms
dauphincounty.org. 3600 IN NS pudding.dauphinc.org.
dauphincounty.org. 3600 IN NS flan.dauphinc.org.
dauphincounty.org. 3600 IN NS custard.dauphinc.org.
couldn't get address for 'flan.dauphinc.org': not found
;; Received 170 bytes from 199.19.53.1#53(c0.org.afilias-nst.info) in 213 ms
gis.dauphincounty.org. 3600 IN A 198.185.140.22
dauphincounty.org. 3600 IN NS custard.dauphinc.org.
;; Received 113 bytes from 198.185.140.20#53(custard.dauphinc.org) in 44 ms
[23.05.1-RELEASE][admin@sg4860.local.lan]/:
you could see there was a bit of problem with one of their name servers
couldn't get address for 'flan.dauphinc.org': not found
See how I did a -4 on mine, this forces only IPv4 if you don't put in that it might try IPv6.. so you could see if with IPv6 is where your having more an issue.. you can see the time required on each step.. of the full trace, once something has been looked up before the NS for the domain are cached and doesn't have to do a full resolve..
if you are having issues with a specific domain, one method of a work around, is setup a domain override in unbound to say vs trying to resolve dauphinc.org. just forward that to say 8.8.8.8 or 1.1.1.1 or quad9 servers, etc.
You can see from here - their dns isn't very robust let us say..
https://dnsviz.net/d/dauphinc.org/dnssec/
I see a bunch of errors that should be corrected with their setup.
Another dns testing site also shows a bunch of issues with it.
https://mxtoolbox.com/SuperTool.aspx?action=dns%3adauphinc.org&run=toolpage
problems.jpg