Make dig less verbose

Dig is great for querying DNS information, but man, by default it’s so chatty:


[berto@bolt]$ dig rcaguilar.wordpress.com

; <> DiG 9.6.0-APPLE-P2 <> rcaguilar.wordpress.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65058
;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;rcaguilar.wordpress.com. IN A

;; ANSWER SECTION:
rcaguilar.wordpress.com. 13874 IN CNAME lb.wordpress.com.
lb.wordpress.com. 225 IN A 76.74.254.120
lb.wordpress.com. 225 IN A 74.200.243.251
lb.wordpress.com. 225 IN A 74.200.244.59
lb.wordpress.com. 225 IN A 72.233.69.6
lb.wordpress.com. 225 IN A 72.233.2.58
lb.wordpress.com. 225 IN A 76.74.254.123

;; Query time: 63 msec
;; SERVER: 10.123.0.1#53(10.123.0.1)
;; WHEN: Fri Mar 11 10:57:14 2011
;; MSG SIZE rcvd: 154

Sigh, make it get to the point:


[berto@bolt]$ dig +noall +answer rcaguilar.wordpress.com
rcaguilar.wordpress.com. 13841 IN CNAME lb.wordpress.com.
lb.wordpress.com. 192 IN A 76.74.254.123
lb.wordpress.com. 192 IN A 72.233.2.58
lb.wordpress.com. 192 IN A 72.233.69.6
lb.wordpress.com. 192 IN A 74.200.244.59
lb.wordpress.com. 192 IN A 74.200.243.251
lb.wordpress.com. 192 IN A 76.74.254.120

Advertisements

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