Host resolution and DNS lookup

Resolve IP to canonical hostname and perform DNS lookup for given or resolved hostname.