Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Last active April 7, 2018 17:48
Show Gist options
  • Save wizardishungry/2d84437e662a2e929b84fe5030c77caf to your computer and use it in GitHub Desktop.
Save wizardishungry/2d84437e662a2e929b84fe5030c77caf to your computer and use it in GitHub Desktop.
knot-resolver subjective performance

Query local knot-resolver instance forwarding to 1.1.1.1 per these directions (3698.7 ms 😫 ):

kdig slashdot.org @127.0.0.1                                                                                                                                                                                master ‹2.3.0›
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 17572
;; Flags: qr rd ra; QUERY: 1; ANSWER: 1; AUTHORITY: 0; ADDITIONAL: 0

;; QUESTION SECTION:
;; slashdot.org.       		IN	A

;; ANSWER SECTION:
slashdot.org.       	300	IN	A	216.105.38.15

;; Received 46 B
;; Time 2018-04-07 13:38:20 EDT
;; From 127.0.0.1@53(UDP) in 3698.7 ms

Query Cloudflare over UDP (48.5 ms)

 kdig slashdot.org @1.1.1.1                                                                                                                                                                                  master ‹2.3.0›
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 31486
;; Flags: qr rd ra; QUERY: 1; ANSWER: 1; AUTHORITY: 0; ADDITIONAL: 0

;; QUESTION SECTION:
;; slashdot.org.       		IN	A

;; ANSWER SECTION:
slashdot.org.       	137	IN	A	216.105.38.15

;; Received 46 B
;; Time 2018-04-07 13:39:40 EDT
;; From 1.1.1.1@53(UDP) in 48.5 ms

Query Cloudflare over TLS (20ms):

 kdig +tls slashdot.org @1.1.1.1                                                                                                                                                                             master ‹2.3.0›
;; TLS session (TLS1.2)-(ECDHE-ECDSA-SECP256R1)-(AES-256-GCM)
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 61924
;; Flags: qr rd ra; QUERY: 1; ANSWER: 1; AUTHORITY: 0; ADDITIONAL: 1

;; EDNS PSEUDOSECTION:
;; Version: 0; flags: ; UDP size: 1536 B; ext-rcode: NOERROR
;; PADDING: 407 B

;; QUESTION SECTION:
;; slashdot.org.       		IN	A

;; ANSWER SECTION:
slashdot.org.       	128	IN	A	216.105.38.15

;; Received 468 B
;; Time 2018-04-07 13:39:48 EDT
;; From 1.1.1.1@853(TCP) in 20.9 ms

Query Google over UDP (21 ms):

kdig slashdot.org @8.8.8.8                                                                                                                                                                                  master ‹2.3.0›
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 27189
;; Flags: qr rd ra; QUERY: 1; ANSWER: 1; AUTHORITY: 0; ADDITIONAL: 0

;; QUESTION SECTION:
;; slashdot.org.       		IN	A

;; ANSWER SECTION:
slashdot.org.       	68	IN	A	216.105.38.15

;; Received 46 B
;; Time 2018-04-07 13:43:52 EDT
;; From 8.8.8.8@53(UDP) in 21.7 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment