Lines Matching defs:hostname
170 * Check if hostname is numerical.
171 * Returns -1 if hostname is numeric, 0 otherwise
174 is_numeric_hostname(const char *hostname)
182 if (hostname == NULL) {
183 error("is_numeric_hostname called with NULL hostname");
191 if (getaddrinfo(hostname, NULL, &hints, &ai) == 0) {
200 * Verify the given hostname, address and host key using DNS.
204 verify_host_key_dns(const char *hostname, struct sockaddr *address,
227 if (is_numeric_hostname(hostname)) {
228 debug("skipped DNS lookup for numerical hostname");
232 result = getrrsetbyname(hostname, DNS_RDATACLASS_IN,
315 export_dns_rr(const char *hostname, struct sshkey *key, FILE *f, int generic)
330 hostname, DNS_RDATATYPE_SSHFP,
334 fprintf(f, "%s IN SSHFP %d %d ", hostname,