How to measure DNS lookup time?

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
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,675
Replies
8
Views
5,096
Replies
0
Views
1,504
Newer Threads
Replies
0
Views
1,158
Replies
2
Views
4,011
Replies
4
Views
3,603
Replies
1
Views
1,376
Latest Threads

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