3 ms·
Does dig takes into account time it takes to establish a TCP connection? If it counts only time it takes to send and receive a response (after the connection ha
by citrin_ru 4y ago
Does dig takes into account time it takes to establish a TCP connection? If it counts only time it takes to send and receive a response (after the connection has been established) there should be no statistically significant difference in the result.
- citrin_ru 4y agoLooks like dig discounts TCP connect time. In drill I see TCP being 2 times slower than UDP (which is what I would expect) but dig shows approximately the same numbers with and without +tcp.
- SkyLinx 4y agoAre you on Mac? What is drill?
- citrin_ru 4y agodrill vs dig comparison was not form mac, but I expect them behave similarly on different platforms. drill is a dig-like utility from NLnet Labs, on Mac can be installed as part of ldns library e. g. using 'brew install ldns'
- benmmurphy 4y agoif you look at the query in Wireshark from TCP SYN to the DNS response packet was ~11ms for me and dig claimed it was 3ms. kind of surprising that OP found it ALWAYS faster. I had some queries that were faster over UDP. when you are not counting the TCP connection setup I would expect them to be close to the same.