Installation

CentOS/RHEL/Fedora

sudo yum install bind-utils -y

Debian/Ubuntu

sudo apt-get install dnsutils -y

Configuration

adjust command defaults with ~/.digrc file

$ dig google.com +short
216.58.220.110
$ vim ~/.digrc
$ cat ~/.digrc
+short
$ dig google.com
216.58.220.110

Commands

refer to dig - commands