Hiding in plain sight: dig, host

Sometimes there are useful things hiding right under your nose. Here’s dig, which I found by mistyping … I forget.

root@lv-a8280 kmandla # dig kmandla.wordpress.com
; <<>> DiG 9.7.2-P3 <<>> kmandla.wordpress.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17565
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;kmandla.wordpress.com.		IN	A

kmandla.wordpress.com.	229	IN	A

;; Query time: 1 msec
;; WHEN: Sat Jan 15 21:28:36 2011
;; MSG SIZE  rcvd: 55

Likewise, here’s host.

root@lv-a8280 kmandla # host kmandla.wordpress.com
kmandla.wordpress.com has address
kmandla.wordpress.com is an alias for lb.wordpress.com.
kmandla.wordpress.com is an alias for lb.wordpress.com.

dig, host, and a bunch of other things are in the dnsutils package. Not every distro installs that by default, but it’s worth checking.

Looks like I can knock one or two more off my list of software to try. …

P.S.: If you really want to see dig in action, take a look at this page.

1 thought on “Hiding in plain sight: dig, host

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s