Simplify dnsutil._has_dig()
Merge pull request #4874 from cvrebert/patch-2

Simplify dnsutil._has_dig()