Installing dig on a CentOS or Red Hat machine
By Jon Archer
Gone are the days where we install nslookup for DNS resolution testing, the new(ish) kid on the block is dig. Although maybe not installed by default, it can be installed quite easily from yum, however it comes bundled with a number of tools so the package name isn’t all that obvious.
[root@server ~]# yum install bind-utils
Will do the trick, now how to use it?
[root@server ~]# dig @nameserver address.com
replace nameserver with your dns nameserver of choice, for example:
[root@server ~]# dig @184.108.40.206 google.com
will use Googles DNS server to resolve google.com