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.

About these ads

1 Response to “Hiding in plain sight: dig, host”

  1. 1 barrucadu 2011/01/15 at 10:59 PM

    I always forget about host, but it’s so useful.

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 )

Google+ photo

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

Connecting to %s


Visit the Wiki!

Some recent desktops

May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF

May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games

Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers


This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,958,625 hits



Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: