Implement local resolution in ns_resolve_async

When a name is found in `/etc/hosts`, ns_resolve_async will
invoke the callback with a syntetic dns message.