version 1.23, 2020/02/25 05:00:42 |
version 1.24, 2020/02/25 17:01:56 |
|
|
return (ISC_R_SUCCESS); |
return (ISC_R_SUCCESS); |
} |
} |
|
|
void |
isc_result_t |
set_nameserver(char *opt) { |
set_nameserver(char *opt) { |
isc_result_t result; |
isc_result_t result; |
isc_sockaddr_t sockaddrs[DIG_MAX_ADDRESSES]; |
isc_sockaddr_t sockaddrs[DIG_MAX_ADDRESSES]; |
|
|
char tmp[ISC_NETADDR_FORMATSIZE]; |
char tmp[ISC_NETADDR_FORMATSIZE]; |
|
|
if (opt == NULL) |
if (opt == NULL) |
return; |
return ISC_R_NOTFOUND; |
|
|
result = get_addresses(opt, 0, sockaddrs, |
result = get_addresses(opt, 0, sockaddrs, |
DIG_MAX_ADDRESSES, &count); |
DIG_MAX_ADDRESSES, &count); |
if (result != ISC_R_SUCCESS) |
if (result != ISC_R_SUCCESS) |
fatal("couldn't get address for '%s': %s", |
return (result); |
opt, isc_result_totext(result)); |
|
|
|
flush_server_list(); |
flush_server_list(); |
|
|
|
|
fatal("memory allocation failure"); |
fatal("memory allocation failure"); |
ISC_LIST_APPEND(server_list, srv, link); |
ISC_LIST_APPEND(server_list, srv, link); |
} |
} |
|
return (ISC_R_SUCCESS); |
} |
} |
|
|
static isc_result_t |
static isc_result_t |