Fixed dns_lookup failed segment fault