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.

DIFFBASE=#140

(DO NOT MERGE pull requests with a DIFFBASE label in the description)