[Gllug] host and dig commands

john maclean jayeola at gmail.com
Fri Oct 1 09:00:53 UTC 2010


What's the diff between `host` and `dig`? When is it best to use either tool?

host av.com
av.com has address 68.180.206.184
av.com has address 206.190.60.37
av.com mail is handled by 50 av2-mrin.yahoo.com.
av.com mail is handled by 50 ccmrin2.corp.re1.yahoo.com.
av.com mail is handled by 50 av1-mrin.yahoo.com.


dig av.com

; <<>> DiG 9.7.0-P1 <<>> av.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30979
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;av.com.                                IN      A

;; ANSWER SECTION:
av.com.                 7070    IN      A       206.190.60.37
av.com.                 7070    IN      A       68.180.206.184

;; Query time: 0 msec
;; SERVER: 10.108.11.151#53(10.108.11.151)
;; WHEN: Fri Oct  1 10:00:10 2010
;; MSG SIZE  rcvd: 56




-- 
John Maclean
MSc (DIC)

Enterprise Linux Systems Engineer

07739 171 531
BlackBerry PIN 222C6738
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list