How to measure DNS lookup time?

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
604
Points
28
Is there a way to to measure DNS lookup time? I asked this question to myself but it is not an easy question to answer. Needing someone help me on this. Thanks!
 

MS-Cloud

Member
Registered
Joined
Oct 31, 2017
Messages
15
Points
3
On Linux you can measure time with nslookup:

# time nslookup google.at 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: google.at
Address: 216.58.211.99


real 0m0,059s
user 0m0,014s
sys 0m0,010s
 

mobin

Well-known member
Registered
Joined
Jun 22, 2017
Messages
234
Points
28
You can use dig command as well.

# dig www.google.com

; <<>> DiG 9.9.4-RedHat-9.9.4-51.el7 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16138
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 149 IN A 172.217.12.196

;; Query time: 9 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Nov 04 17:11:09 IST 2017
;; MSG SIZE rcvd: 59
 
Older Threads
Replies
5
Views
3,553
Replies
8
Views
4,817
Replies
0
Views
1,412
Newer Threads
Replies
0
Views
1,053
Replies
2
Views
3,840
Replies
4
Views
3,411
Replies
1
Views
1,267
Latest Threads
Replies
0
Views
38
Replies
0
Views
58
Replies
1
Views
84
Replies
1
Views
93
Recommended Threads
Replies
2
Views
2,644
Replies
0
Views
2,103
Replies
2
Views
2,779
Replies
11
Views
5,002

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top