Add `ip_info` and `netloc_info`

`domain_info` makes the assumption that only a domain is being passed to
it. This patch adds an `ip_info` and a `netloc_info` to handle ip
addresses or domain.

`ip_info` expects an IP only and will error if the string that is
passed to it is not a valid IP address.

`netloc_info` will attempt to determine if the string that is passed to
it is an IP or a domain, and call the appropriate function.

Change-Id: I34baf3b2ee94bd866531f94d3073fe83098f1046
Implements: blueprint ip-and-netloc-info