2012-04-20

Sane defaults for dig command

Debian has replaced the old "host" command with a new version that I call "host for dummies"; so I have had to resort to using "dig" instead. The problem with dig is that it is very verbose. Luckily it has enough options to control the verbiage - but I don't use it often enough to remember them. Here is a simple ~/.digrc that trims the output down to the old "host" levels:

+noall +answer +nocl +nottl

If I need to display more info (e.g. the TTL) then it's easy to add "+ttl" to the end of the command line.