Made the NoDNS flag work globally by moving the checker to the resolveIP function in dns.go