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 ;; QUESTION SECTION: ;kmandla.wordpress.com. IN A ;; ANSWER SECTION: kmandla.wordpress.com. 229 IN A 72.233.69.6 ;; Query time: 1 msec ;; SERVER: 192.168.0.1#53(192.168.0.1) ;; 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 72.233.69.6 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.
I always forget about host, but it’s so useful.