Lines Matching defs:hostname
131 char *hostname = NULL;
194 /* Derive a default domain search list from the kernel hostname,
195 * or set it to empty if the hostname isn't helpful.
205 hostname = ares_malloc(len);
206 if (!hostname) {
212 res = gethostname(hostname, lenv);
218 p = ares_realloc(hostname, len);
223 hostname = p;
228 *hostname = '\0';
234 dot = strchr(hostname, '.');
289 if (hostname) {
290 ares_free(hostname);