diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-05-31 16:32:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-06-02 23:12:04 +0200 |
commit | 125b1a8619eb27556e093fd9c9adf451e896f012 (patch) | |
tree | 8db450d6c98198ede184daa0fbb97fbc79fa0f1b /ares_init.3 | |
parent | 0e8dc6f18eeb8a54115af2b2bd5693f933b6c27f (diff) | |
download | c-ares-125b1a8619eb27556e093fd9c9adf451e896f012.tar.gz c-ares-125b1a8619eb27556e093fd9c9adf451e896f012.tar.bz2 c-ares-125b1a8619eb27556e093fd9c9adf451e896f012.zip |
ares_init: Last, not first instance of domain or search should win
Diffstat (limited to 'ares_init.3')
-rw-r--r-- | ares_init.3 | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/ares_init.3 b/ares_init.3 index 00ff36d..fb25306 100644 --- a/ares_init.3 +++ b/ares_init.3 @@ -109,7 +109,7 @@ or the domain derived from the kernel hostname variable. .B ARES_OPT_LOOKUPS .B char *\fIlookups\fP; .br -The lookups to perform for host queries. +The lookups to perform for host queries. .I lookups should be set to a string of the characters "b" or "f", where "b" indicates a DNS lookup and "f" indicates a lookup in the hosts file. @@ -189,6 +189,27 @@ The process's available memory was exhausted. .TP 14 .B ARES_ENOTINITIALIZED c-ares library initialization not yet performed. +.SH NOTES +When initializing from +.B /etc/resolv.conf, +.BR ares_init (3) +reads the +.I domain +and +.I search +directives to allow lookups of short names relative to the domains +specified. The +.I domain +and +.I search +directives override one another. If more that one instance of either +.I domain +or +.I search +directives is specified, the last occurence wins. For more information, +please see the +.BR resolv.conf (5) +manual page. .SH SEE ALSO .BR ares_destroy(3), .BR ares_dup(3), |