From 1a1b4eb4f2fb6112534994c20ac20679c5c7339c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 1 Nov 2008 18:35:19 +0000 Subject: - Carlo Contavalli added support for the glibc "rotate" option, as documented in man resolv.conf: causes round robin selection of nameservers from among those listed. This has the effect of spreading the query load among all listed servers, rather than having all clients try the first listed server first every time. You can enable it with ARES_OPT_ROTATE --- ares.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ares.h') diff --git a/ares.h b/ares.h index 3609f86..1507f41 100644 --- a/ares.h +++ b/ares.h @@ -114,6 +114,7 @@ extern "C" { #define ARES_OPT_SOCK_SNDBUF (1 << 11) #define ARES_OPT_SOCK_RCVBUF (1 << 12) #define ARES_OPT_TIMEOUTMS (1 << 13) +#define ARES_OPT_ROTATE (1 << 14) /* Nameinfo flag values */ #define ARES_NI_NOFQDN (1 << 0) @@ -184,6 +185,7 @@ struct ares_options { int timeout; /* in seconds or milliseconds, depending on options */ int tries; int ndots; + int rotate; unsigned short udp_port; unsigned short tcp_port; int socket_send_buffer_size; -- cgit v1.2.3