可以先安装 BIND DNS Server 然后把 dig 拿出来
# apt-get install bind
# cat > /etc/resolv.conf
nameserver 8.8.8.8
^D
# cp /usr/bin/dig /usr/bin/dig_
# cp /usr/bin/nslookup /usr/bin/nslookup_
# cp /usr/bin/host /usr/bin/host_
# apt-get remove bind
# mv /usr/bin/dig_ /usr/bin/dig
# mv /usr/bin/nslookup_ /usr/bin/nslookup
# mv /usr/bin/host_ /usr/bin/host
参考:
https://forums.modmy.com/3rd-party-apps-requests-f32/736743-no-dns-utils.html