hostname is the string form of an IPv4 or IPv6 address.
Since 2.66, IPv6 addresses with a zone-id are accepted (RFC6874).
A hostname (or IP address in string form)
|The data is owned by the caller of the function.|
|The string is a NUL terminated UTF-8 string.|