Added option for UseDNS