DNS resolver very slow
-
@spacebass said in DNS resolver very slow:
um.edu is a domain I've never queried before
not even a valid domain, even via IPv4.. Which is why you got back SOA from one of the .edu NS.
-
@johnpoz said in DNS resolver very slow:
not even a valid domain, even via IPv4.. Which is why you got back SOA from one of the .edu NS.
ha! Didn't even notice that, I was so focused on the query time only
-
@steveits said in DNS resolver very slow:
In pfSense there is an option in System/Advanced/Networking to "Prefer IPv4 over IPv6" which is only for pfSense itself.
thanks, thats helpful
What else would that affect besides Unbound... updates?
Would it affect resolution of VPN peers? -
@spacebass said in DNS resolver very slow:
What else would that affect besides Unbound... updates?
All that setting means is pfsense should use ipv4 before IPv6 if it has both.. This would be for when it talks to something, like checking if new pfsense available, when it checks to see what packages available..
keep in mind that if the package like pfblocker makes the actual request, and not the OS (pfsense) it might try IPv6 first..
-
@johnpoz thanks! that's clear
-
still working on troubleshooting this ... not sure how exactly.
I have 'Prefer to use IPv4 even if IPv6 is available' checked
IPv6 seems to be configured correctly. I get addresses for each LAN client. I can ping6 any internal and external server with an IPv6 address.
But nonetheless, resolves are quite slow whenever IPv6 is enabled.
Might that just be the nature of my routes to root servers? Or could there be something else on my end to check?
-
bumping this one - still looking for some troubleshooting tips.
I've set pfSense to prefer IPv4 but AAAA queries still take between 2-8msecs.
Any tips for troubleshooting or resolving or tweaking? -
@spacebass said in DNS resolver very slow:
ight that just be the nature of my routes to root servers
Keep in mind root servers are only talked to get the gltd servers for whatever tld the domain is your looking for .net, .com, .org, etc..
So you not very often talk to the actual roots - only when your looking up something that has a different tld that you have not looked up before, like .biz or .edu etc..
It then asks those for the authoritative ns for domain.tld - it then talks that NS directly forwhatever host.domain.tld your looking for.
The roots and the gtld servers are then cached for quite some time, so you wouldn't really need to ask them again when looking up host.domain.tld or otherthing.domain.tld that you already know the authoritative NSers for..
Its quite possible the domain or domains your having slow resolving time with - you have a bad ipv6 connection too, etc.. Unbound will normally tend to use the fastest NS for some domain when the domain has multiple NSers.. which is really a requirement - but have seen some shit domains where its the same box, just different IP, etc. etc..
I would look to a specific domain your having slowness with, and look to see what kind of latency you see when you query them directly for some record they are authoritative for..
-
-
@steveits thanks - that's interesting. I'm not forwarding to quad 9 but I'll check and see if disabling aslr makes a difference.