Symptoms:
Trying to execute the dig utility fails with the following error:
for i in {a..m}; do echo -n "$i.root-servers.net: "; dig -4 "$i".root-servers.net @"$i".root-servers.net +short;done
a.root-servers.net: dig: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
b.root-servers.net: dig: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
c.root-servers.net: dig: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
Description:
The message is quite descriptive and it means that the library file libGeoIP.so.1 is missing. That file belongs to this package: (A Library for country/city/organization to IP address or hostname mapping)
rpm -qf /lib64/libGeoIP.so.1
GeoIP-1.5.0-14.el7.x86_64
Workaround
You need to install the missing package by running this command:
yum install geoip
Then afterward you can confirm dig is working again by running a test command such as this:
for i in {a..m}; do echo -n "$i.root-servers.net: "; dig -4 "$i".root-servers.net @"$i".root-servers.net +short;done
a.root-servers.net: 198.41.0.4
b.root-servers.net: 199.9.14.201
c.root-servers.net: 192.33.4.12
d.root-servers.net: 199.7.91.13
e.root-servers.net: 192.203.230.10
f.root-servers.net: 192.5.5.241
g.root-servers.net: 192.112.36.4
h.root-servers.net: 198.97.190.53
i.root-servers.net: 192.36.148.17
j.root-servers.net: 192.58.128.30
k.root-servers.net: 193.0.14.129
l.root-servers.net: 199.7.83.42
m.root-servers.net: 202.12.27.33