true if value is a valid IPv4 address or a hostname whose labels hold only letters, digits and hyphens, and neither start nor end with a hyphen.