Added ns_resolve()