pub fn valid_host(host: &str) -> bool
DNS A-label hostname or unbracketed IP literal; empty clears the endpoint.