diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-11-01 18:35:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-11-01 18:35:19 +0000 |
commit | 3e3d10824f08fa2917f62a4c9c81e4e7ab3a9327 (patch) | |
tree | 1a1720c7a69dd5a758658128b3c12dbf20af82e6 /ares/ares.h | |
parent | 128418b214dbb38ea1b8d08d6641ae9cbe43921f (diff) | |
download | curl-3e3d10824f08fa2917f62a4c9c81e4e7ab3a9327.tar.gz |
- 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
Diffstat (limited to 'ares/ares.h')
-rw-r--r-- | ares/ares.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ares/ares.h b/ares/ares.h index 3609f8676..1507f41e9 100644 --- a/ares/ares.h +++ b/ares/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; |