0

Native MacOS App Much slower than Router CLI

I was just doing some random testing and when the client is enabled the responses are much higher (85ms) vs the Unifi Router responses upstream at 0ms.

 

I am curious why the native app seems much slower to resolve.

MacOS App

;; ANSWER SECTION:
www.yahoo.com.          300     IN      A       74.6.143.26
www.yahoo.com.          300     IN      A       74.6.143.25
www.yahoo.com.          300     IN      A       74.6.231.20
www.yahoo.com.          300     IN      A       74.6.231.21

;; Query time: 83 msec
;; SERVER: 192.0.2.42#53(192.0.2.42)
;; WHEN: Thu Apr 28 08:59:05 EDT 2022
;; MSG SIZE  rcvd: 106

Router Upstream from same laptop Native App Disabled

;; ANSWER SECTION:
www.yahoo.com.          5       IN      A       74.6.143.25
www.yahoo.com.          5       IN      A       74.6.143.26
www.yahoo.com.          5       IN      A       74.6.231.20
www.yahoo.com.          5       IN      A       74.6.231.21

;; Query time: 0 msec
;; SERVER: 192.168.100.1#53(192.168.100.1)
;; WHEN: Thu Apr 28 09:01:40 EDT 2022
;; MSG SIZE  rcvd: 106
3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • 0ms is only because it's cached 

    Like
  • Then it seems curious why the native client does not cache (or have the option to) like the router CLI

    Like
    • Chris Colotti dig does not query the system stub resolver and thus short circuit the system’s DNS cache by connecting to the system configured resolver IP directly. When using CLI on router, dig connects to it as a resolver and thus benefits from its cache.

      Like
Like Follow
  • 1 yr agoLast active
  • 3Replies
  • 48Views
  • 2 Following