/digx

Small bash command used as a wrapper to "dig" command

Primary LanguageShell

digx

Bash wrapper of dig command to make it easier to resolve website hosts and its associated reverse addresses

Usage

Retrieve the current IP address and its associated reverse address

$ digx http://www.configr.com/planos/
host: www.configr.com
host: configr.com
host: 45.79.10.58
--
rdns: monty.confi.gr

Retrieve the current IP address, DNS nameservers and its associated reverse address

$ digx http://www.configr.com/planos/ ns
dns1: ns2.configr.com
dns2: ns1.configr.com
--
host: www.configr.com
host: configr.com
host: 45.79.10.58
--
rdns: monty.confi.gr

Installation

$ cp digx.sh /usr/local/bin/digx
$ chmod a+x /usr/local/bin/digx