core/net/resolv: IPv6 support and improved API. MDNS responder and resolver support.

This patch updates the DNS resolver to support IPv6 and introduces
an improved API for looking up DNS entries.

This patch also adds optional suport for MDNS lookups and responses
to the DNS resolver.