dns_resolver script modification