added checking for dig to do DNS queries