@surroundtortilla said in pfSense+ DNS slow (10+ms):
DNS is configured as a forwarder to Google DNS atm.
If I forward to googledns... I don't see 10 added to my query, directed I get
;; ANSWER SECTION:
www.google.com. 250 IN A 142.250.191.100
;; Query time: 14 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon May 01 21:30:04 Central Daylight Time 2023
If I setup unbound to just forward to 8.8.8.8 and turn off dnssec I get this. This is right after a flush..
;; ANSWER SECTION:
www.google.com. 3600 IN A 142.250.191.100
;; Query time: 15 msec
;; SERVER: 192.168.9.253#53(192.168.9.253)
;; WHEN: Mon May 01 21:32:35 Central Daylight Time 2023
;; MSG SIZE rcvd: 59
Doing a bunch of queries direct to 8.8.8.8 I seem get between 11 and 21ms
;; ANSWER SECTION:
www.google.com. 182 IN A 142.250.191.100
;; Query time: 21 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon May 01 21:34:04 Central Daylight Time 2023
;; MSG SIZE rcvd: 59
I wouldn't worry about 10ms or even for that matter 100.. 10 ms is 0.01 of a second.
you see the 3600 ttl on my query to unbound, because I have min ttl set to 3600..
maybe your unbound is way busier than you think it is - maybe you have some box pounding asking the same thing over and over again?
I had some issues with my internet the other day (cable cut) - and when devices can not resolve either because your blocking or not working, some of these iot devices can just hammer dns..
2023-04-29 09:38:51 RATE_LIMIT Client 192.168.7.3 has been rate-limited (current config allows up to 1000 queries in 60 seconds)
2023-04-29 14:06:25 RATE_LIMIT Client 192.168.4.80 has been rate-limited (current config allows up to 1000 queries in 60 seconds)
2023-04-29 14:40:29 RATE_LIMIT Client 192.168.4.77 has been rate-limited (current config allows up to 1000 queries in 60 seconds)
2023-04-29 15:22:20 RATE_LIMIT Client 192.168.4.79 has been rate-limited (current config allows up to 1000 queries in 60 seconds)
2023-04-29 17:20:24 RATE_LIMIT Client 192.168.4.76 has been rate-limited (current config allows up to 1000 queries in 60 seconds)
My alexa's were going crazy when my internet was down asking for dns..
24hour.jpg
That is the number of their queries in 24 hour period - little bastards!! ;)