Brad Spencer provided changes to allow buildconf to work on OS X.
[platform/upstream/c-ares.git] / CHANGES
1   Changelog for the c-ares project
2
3 * Nov 26 2008 (Yang Tse)
4 - Brad Spencer provided changes to allow buildconf to work on OS X.
5
6 * Nov 25 2008 (Yang Tse)
7 - In preparation for the upcomming IPv6 nameservers patch, the internal
8   ares_addr union is now changed into an internal struct which also holds
9   the address family.
10
11 * Nov 19 2008 (Daniel Stenberg)
12 - Brad Spencer brought the new function ares_gethostbyname_file() which simply
13   resolves a host name from the given file, using the regular hosts syntax.
14
15 * Nov 1 2008 (Daniel Stenberg)
16 - Carlo Contavalli added support for the glibc "rotate" option, as documented
17   in man resolv.conf: 
18
19   causes round robin selection of nameservers from among those listed.  This
20   has the effect of spreading the query load among all listed servers, rather
21   than having all clients try the first listed server first every time.
22
23   You can enable it with ARES_OPT_ROTATE
24
25 * Oct 21 2008 (Yang Tse)
26   Charles Hardin added handling of EINPROGRESS for UDP connects.
27
28 * Oct 18 2008 (Daniel Stenberg)
29   Charles Hardin made adig support a regular numerical dotted IP address for the
30   -s option as well.
31
32 * Oct 7 2008 (Yang Tse)
33 - Added --enable-optimize configure option to enable and disable compiler
34   optimizations to allow decoupled setting from --enable-debug.
35
36 * Oct 2 2008 (Yang Tse)
37 - Added --enable-warnings configure option to enable and disable strict
38   compiler warnings to allow decoupled setting from --enable-debug.
39
40 * Sep 17 2008 (Yang Tse)
41 - Code reorganization to allow internal/private use of "nameser.h" to any
42   system that lacks arpa/nameser.h or arpa/nameser_compat.h header files.
43
44 * Sep 16 2008 (Yang Tse)
45 - Code reorganization to allow internal/private use of ares_writev to any
46   system that lacks the writev function.
47
48 * Sep 15 2008 (Yang Tse)
49 - Code reorganization to allow internal/private use of ares_strcasecmp to any
50   system that lacks the strcasecmp function.
51
52 - Improve configure detection of some string functions.
53
54 * Sep 11 2008 (Yang Tse)
55 - Code reorganization to allow internal/private use of ares_strdup to any
56   system that lacks the strdup function.
57
58 Version 1.5.3 (Aug 29, 2008)
59
60 * Aug 25 2008 (Yang Tse)
61 - Improvement by Brad House:
62
63   This patch addresses an issue in which a response could be sent back to the
64   source port of a client from a different address than the request was made to.
65   This is one form of a DNS cache poisoning attack.
66
67   The patch simply uses recvfrom() rather than recv() and validates that the
68   address returned from recvfrom() matches the address of the server we have
69   connected to. Only necessary on UDP sockets as they are connection-less, TCP
70   is unaffected.
71
72 - Fix by George Neill:
73   Fixed compilation of acountry sample application failure on some systems.
74
75 * Aug 4 2008 (Daniel Stenberg)
76 - Fix by Tofu Linden:
77
78   The symptom:
79   * Users (usually, but not always) on 2-Wire routers and the Comcast service
80   and a wired connection to their router would find that the second and
81   subsequent DNS lookups from fresh processes using c-ares to resolve the same
82   address would cause the process to never see a reply (it keeps polling for
83   around 1m15s before giving up).
84
85   The repro:
86   * On such a machine (and yeah, it took us a lot of QA to find the systems
87   that reproduce such a specific problem!), do 'ahost www.secondlife.com',
88   then do it again.  The first process's lookup will work, subsequent lookups
89   will time-out and fail.
90
91   The cause:
92   * init_id_key() was calling randomize_key() *before* it initialized
93   key->state, meaning that the randomness generated by randomize_key() is
94   immediately overwritten with deterministic values. (/dev/urandom was also
95   being read incorrectly in the c-ares version we were using, but this was
96   fixed in a later version.)
97   * This makes the stream of generated query-IDs from any new c-ares process
98   be an identical and predictable sequence of IDs.
99   * This makes the 2-Wire's default built-in DNS server detect these queries
100   as probable-duplicates and (erroneously) not respond at all.
101
102
103 * Aug 4 2008 (Yang Tse)
104 - Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
105   Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. 2.62
106   version of AC_AIX defines _ALL_SOURCE and other four preprocessor symbols
107   no matter if the system is AIX or not. To keep the traditional behaviour,
108   and an uniform one across autoconf versions AC_AIX is replaced with our
109   own internal macro CARES_CHECK_AIX_ALL_SOURCE.
110
111 * Aug 1 2008 (Yang Tse)
112 - Configure process now checks if the preprocessor _REENTRANT symbol is already
113   defined. If it isn't currently defined a set of checks are performed to test
114   if its definition is required to make visible to the compiler a set of *_r
115   functions. Finally, if _REENTRANT is already defined or needed it takes care
116   of making adjustments necessary to ensure that it is defined equally for the
117   configure process tests and generated config file.
118
119 * Jul 20 2008 (Yang Tse)
120 - When recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
121   now cause the definition, as appropriate, of RECVFROM_TYPE_ARG2_IS_VOID,
122   RECVFROM_TYPE_ARG5_IS_VOID or RECVFROM_TYPE_ARG6_IS_VOID.
123
124 * Jul 17 2008 (Yang Tse)
125 - RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
126   to the data type pointed by its respective argument and not the pointer type.
127
128 * Jul 16 2008 (Yang Tse)
129 - Improved configure detection of number of arguments for getservbyport_r.
130   Detection is now based on compilation checks instead of linker ones.
131
132 - Configure process now checks availability of recvfrom() socket function and
133   finds out its return type and the types of its arguments. Added definitions
134   for non-configure systems config files, and introduced macro sreadfrom which
135   will be used on udp sockets as a recvfrom() wrapper in the future.
136
137 * Jul 15 2008 (Yang Tse)
138 - Introduce definition of _REENTRANT symbol in setup.h to improve library
139   usability.  Previously the configure process only used the AC_SYS_LARGEFILE
140   macro for debug builds, now it is also used for non-debug ones enabling the
141   use of configure options --enable-largefile and --disable-largefile which
142   might be needed for library compatibility.  Remove checking the size of
143   curl_off_t, it is no longer needed.
144
145 * Jul 3 2008 (Daniel Stenberg)
146 - Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
147   the target host has only A records, it automatically falls back to an
148   AF_INET lookup and gives you the A results.  However, if the target host has
149   a CNAME record, this behaviour is defeated since the original query does
150   return some data even though ares_parse_aaa_reply() doesn't consider it
151   relevant. Here's a small patch to make it behave the same with and without
152   the CNAME.
153
154 * Jul 2 2008 (Yang Tse)
155 - Fallback to gettimeofday when monotonic clock is unavailable at run-time.
156
157 * Jun 30 2008 (Daniel Stenberg)
158
159 - As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is
160   not posix or anything and thus c-ares failed to build on hurd (and possibly
161   elsewhere). The define was also somewhat artificially used in the windows
162   port. Now, I instead rewrote the use of gethostbyname to enlarge the host
163   name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
164   define. I thus also removed the defien from the namser.h file where it was
165   once added for the windows build.
166
167   I also fixed init_by_defaults() function to not leak memory in case if
168   error.
169
170 * Jun 9 2008 (Yang Tse)
171
172 - Make libcares.pc generated file for pkg-config include information relative
173   to the libraries needed for the static linking of c-ares.
174
175 * May 30 2008 (Yang Tse)
176
177 - Brad House fixed a missing header file inclusion in adig sample program.
178
179 Version 1.5.2 (May 29, 2008)
180
181 * May 13 2008 (Daniel Stenberg)
182
183 - Introducing millisecond resolution support for the timeout option. See
184   ares_init_options()'s ARES_OPT_TIMEOUTMS.
185
186 * May 9 2008 (Yang Tse)
187
188 - Use monotonic time source if available, for private function ares__tvnow()
189
190 * May 7 2008 (Daniel Stenberg)
191
192 - Sebastian made c-ares able to return all PTR-records when doing reverse
193   lookups. It is not common practice to have multiple PTR-Records for a single
194   IP, but its perfectly legal and some sites have those.
195
196 - Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
197   autoconf 2.57 usage (which is the version you have specified as the minimum
198   version). It's a minor change but it does clean up some warnings with newer
199   autoconf (specifically 2.62).
200
201 * May 5 2008 (Yang Tse)
202
203 - Improved parsing of resolver configuration files.
204
205 * April 4 2008 (Daniel Stenberg)
206
207 - Eino Tuominen improved the code when a file is used to seed the randomizer.
208
209 - Alexey Simak made adig support NAPTR records
210
211 - Alexey Simak fixed the VC dsp file by adding the missing source file
212   ares_expand_string.c
213
214 * December 11 2007 (Gisle Vanem)
215
216 - Added another sample application; acountry.c which converts an
217   IPv4-address(es) and/or host-name(s) to country-name and country-code.
218   This uses the service of the DNSBL at countries.nerd.dk.
219
220 * December 3 2007 (Daniel Stenberg)
221
222 - Brad Spencer fixed the configure script to assume that there's no
223   /dev/urandom when built cross-compiled as then the script cannot check for
224   it.
225
226 - Erik Kline cleaned up ares_gethostbyaddr.c:next_lookup() somewhat
227
228 Version 1.5.1 (Nov 21, 2007)
229
230 * November 21 2007 (Daniel Stenberg)
231
232 - Robin Cornelius pointed out that ares_llist.h was missing in the release
233   archive for 1.5.0
234
235 Version 1.5.0 (Nov 21, 2007)
236
237 * October 2 2007 (Daniel Stenberg)
238
239 - ares_strerror() segfaulted if the input error number was out of the currently
240   supported range.
241
242 - Yang Tse: Avoid a segfault when generating a DNS "Transaction ID" in
243   internal function init_id_key() under low memory conditions.
244
245 * September 28 2007 (Daniel Stenberg)
246
247 - Bumped version to 1.5.0 for next release and soname bumped to 2 due to ABI
248   and API changes in the progress callback (and possibly more coming up from
249   Steinar)
250
251 * September 28 2007 (Steinar H. Gunderson)
252
253 - Don't skip a server if it's the only one. (Bugfix from the Google tree.)
254
255 - Made the query callbacks receive the number of timeouts that happened during
256   the execution of a query, and updated documentation accordingly. (Patch from
257   the Google tree.)
258
259 - Support a few more socket options: ARES_OPT_SOCK_SNDBUF and
260   ARES_OPT_SOCK_RCVBUF
261
262 - Always register for TCP events even if there are no outstanding queries, as
263   the other side could always close the connection, which is a valid event
264   which should be responded to.
265
266 * September 22 2007 (Daniel Stenberg)
267
268 - Steinar H. Gunderson fixed: Correctly clear sockets from the fd_set on in
269   several functions (write_tcp_data, read_tcp_data, read_udp_packets) so that
270   if it fails and the socket is closed the following code doesn't try to use
271   the file descriptor.
272
273 - Steinar H. Gunderson modified c-ares to now also do to DNS retries even when
274   TCP is used since there are several edge cases where it still makes sense.
275
276 - Brad House provided a fix for ares_save_options():
277
278   Apparently I overlooked something with the ares_save_options() where it
279   would try to do a malloc(0) when no options of that type needed to be saved.
280   On most platforms, this was fine because malloc(0) doesn't actually return
281   NULL, but on AIX it does, so ares_save_options would return ARES_ENOMEM.
282
283 * July 14 2007 (Daniel Stenberg)
284
285 - Vlad Dinulescu fixed two outstanding valgrind reports:
286
287   1. In ares_query.c , in find_query_by_id we compare q->qid (which is a short
288   int variable) with qid, which is declared as an int variable.  Moreover,
289   DNS_HEADER_SET_QID is used to set the value of qid, but DNS_HEADER_SET_QID
290   sets only the first two bytes of qid. I think that qid should be declared as
291   "unsigned short" in this function.
292
293   2. The same problem occurs in ares_process.c, process_answer() .  query->qid
294   (an unsigned short integer variable) is compared with id, which is an
295   integer variable. Moreover, id is initialized from DNS_HEADER_QID which sets
296   only the first two bytes of id. I think that the id variable should be
297   declared as "unsigned short" in this function.
298
299   Even after declaring these variables as "unsigned short", the valgrind
300   errors are still there. Which brings us to the third problem.
301
302   3. The third problem is that Valgrind assumes that query->qid is not
303   initialised correctly. And it does that because query->qid is set from
304   DNS_HEADER_QID(qbuf); Valgrind says that qbuf has unitialised bytes. And
305   qbuf has uninitialised bytes because of channel->next_id . And next_id is
306   set by ares_init.c:ares__generate_new_id() . I found that putting short r=0
307   in this function (instead of short r) makes all Valgrind warnings go away.
308   I have studied ares__rc4() too, and this is the offending line:
309
310         buffer_ptr[counter] ^= state[xorIndex];   (ares_query.c:62)
311
312   This is what triggers Valgrind.. buffer_ptr is unitialised in this function,
313   and by applying ^= on it, it remains unitialised.
314
315 Version 1.4.0 (June 8, 2007)
316
317 * June 4 2007 (Daniel Stenberg)
318
319 - James Bursa reported a major memory problem when resolving multi-IP names
320   and I found and fixed the problem. It was added by Ashish Sharma's patch
321   two days ago.
322
323   When I then tried to verify multiple entries in /etc/hosts after my fix, I
324   got another segfault and decided this code was not ripe for inclusion and I
325   reverted the patch.
326
327 * June 2 2007
328
329 - Brad Spencer found and fixed three flaws in the code, found with the new
330   gcc 4.2.0 warning: -Waddress
331
332 - Brad House fixed VS2005 compiler warnings due to time_t being 64bit.
333   He also made recent Microsoft compilers use _strdup() instead of strdup().
334
335 - Brad House's man pages for ares_save_options() and ares_destroy_options()
336   were added.
337
338 - Ashish Sharma provided a patch for supporting multiple entries in the
339   /etc/hosts file. Patch edited for coding style and functionality by me
340   (Daniel).
341
342 * May 30 2007
343
344 - Shmulik Regev brought cryptographically secure transaction IDs:
345
346   The c-ares library implementation uses a DNS "Transaction ID" field that is
347   seeded with a pseudo random number (based on gettimeofday) which is
348   incremented (++) between consecutive calls and is therefore rather
349   predictable. In general, predictability of DNS Transaction ID is a well
350   known security problem (e.g.
351   http://bak.spc.org/dms/archive/dns_id_attack.txt) and makes a c-ares based
352   implementation vulnerable to DNS poisoning. Credit goes to Amit Klein
353   (Trusteer) for identifying this problem.
354
355   The patch I wrote changes the implementation to use a more secure way of
356   generating unique IDs. It starts by obtaining a key with reasonable entropy
357   which is used with an RC4 stream to generate the cryptographically secure
358   transaction IDs.
359
360   Note that the key generation code (in ares_init:randomize_key) has two
361   versions, the Windows specific one uses a cryptographically safe function
362   provided (but undocumented :) by the operating system (described at
363   http://blogs.msdn.com/michael_howard/archive/2005/01/14/353379.aspx).  The
364   default implementation is a bit naive and uses the standard 'rand'
365   function. Surely a better way to generate random keys exists for other
366   platforms.
367
368   The patch can be tested by using the adig utility and using the '-s' option.
369
370 - Brad House added ares_save_options() and ares_destroy_options() that can be
371   used to keep options for later re-usal when ares_init_options() is used.
372
373   Problem: Calling ares_init() for each lookup can be unnecessarily resource
374          intensive.  On windows, it must LoadLibrary() or search the registry
375          on each call to ares_init().  On unix, it must read and parse
376          multiple files to obtain the necessary configuration information.  In
377          a single-threaded environment, it would make sense to only
378          ares_init() once, but in a heavily multi-threaded environment, it is
379          undesirable to ares_init() and ares_destroy() for each thread created
380          and track that.
381
382   Solution: Create ares_save_options() and ares_destroy_options() functions to
383          retrieve and free options obtained from an initialized channel.  The
384          options populated can be used to pass back into ares_init_options(),
385          it should populate all needed fields and not retrieve any information
386          from the system.  Probably wise to destroy the cache every minute or
387          so to prevent the data from becoming stale.
388
389 - Daniel S added ares_process_fd() to allow applications to ask for processing
390   on specific sockets and thus avoiding select() and associated
391   functions/macros.  This function will be used by upcoming libcurl releases
392   for this very reason. It also made me export the ares_socket_t type in the
393   public ares.h header file, since ares_process_fd() uses that type for two of
394   the arguments.
395
396 * May 25 2007
397
398 - Ravi Pratap fixed a flaw in the init_by_resolv_conf() function for windows
399   that could cause it to return a bad return code.
400
401 * April 16 2007
402
403 - Yang Tse: Provide ares_getopt() command-line parser function as a source
404   code helper function, not belonging to the actual c-ares library.
405
406 * February 19 2007
407
408 - Vlad Dinulescu added ares_parse_ns_reply().
409
410 * February 13 2007
411
412 - Yang Tse: Fix failure to get the search sequence of /etc/hosts and
413   DNS from /etc/nsswitch.conf, /etc/host.conf or /etc/svc.conf when
414   /etc/resolv.conf did not exist or was unable to read it.
415
416 * November 22 2006
417
418 - Install ares_dns.h too
419
420 - Michael Wallner fixed this problem: When I set domains in the options
421   struct, and there are domain/search entries in /etc/resolv.conf, the domains
422   of the options struct will be overridden.
423
424 * November 6 2006
425
426 - Yang Tse removed a couple of potential zero size memory allocations.
427
428 - Andreas Rieke fixed the line endings in the areslib.dsp file that I (Daniel)
429   broke in the 1.3.2 release. We should switch to a system where that file is
430   auto-generated. We could rip some code for that from curl...
431
432 Version 1.3.2 (November 3, 2006)
433
434 * October 12 2006
435
436 - Prevent ares_getsock() to overflow if more than 16 sockets are used.
437
438 * September 11 2006
439
440 - Guilherme Balena Versiani: I noted a strange BUG in Win32 port
441   (ares_init.c/get_iphlpapi_dns_info() function): when I disable the network
442   by hand or disconnect the network cable in Windows 2000 or Windows XP, my
443   application gets 127.0.0.1 as the only name server. The problem comes from
444   'GetNetworkParams' function, that returns the empty string "" as the only
445   name server in that case. Moreover, the Windows implementation of
446   inet_addr() returns INADDR_LOOPBACK instead of INADDR_NONE.
447
448 * August 29 2006
449
450 - Brad Spencer did
451
452   o made ares_version.h use extern "C" for c++ compilers
453   o fixed compiler warnings in ares_getnameinfo.c
454   o fixed a buffer position init for TCP reads
455
456 * August 3 2006
457
458 - Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
459   not always zero!
460
461 Version 1.3.1 (June 24, 2006)
462
463 * July 23, 2006
464
465 - Gisle Vanem added getopt() to the ahost program. Currently accepts
466   only [-t {a|aaaa}] to specify address family in ares_gethostbyname().
467
468 * June 19, 2006
469
470 - (wahern) Removed "big endian" DNS section and RR data integer parser
471   macros from ares_dns.h, which break c-ares on my Sparc64. Bit-wise
472   operations in C operate on logical values. And in any event the octets are
473   already in big-endian (aka network) byte order so they're being reversed
474   (thus the source of the breakage).
475
476 * June 18, 2006
477
478 - William Ahern handles EAGAIN/EWOULDBLOCK errors in most of the I/O calls
479   from area_process.c.
480
481   TODO: Handle one last EAGAIN for a UDP socket send(2) in
482   ares__send_query().
483
484 * May 10, 2006
485
486 - Bram Matthys brought my attention to a libtool peculiarity where detecting
487   things such as C++ compiler actually is a bad thing and since we don't need
488   that detection I added a work-around, much inspired by a previous patch by
489   Paolo Bonzini. This also shortens the configure script quite a lot.
490
491 * May 3, 2006
492
493 - Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
494   c-ares call a callback on socket state changes. A better way than the
495   ares_getsock() to get full control over the socket state.
496
497 * January 9, 2006
498
499 - Alexander Lazic improved the getservbyport_r() configure check.
500
501 * January 6, 2006
502
503 - Alexander Lazic pointed out that the buildconf should use the ACLOCAL_FLAGS
504   variable for easier controlling what it does and how it runs.
505
506 * January 5, 2006
507
508 - James Bursa fixed c-ares to find the hosts file on RISC OS, and made it
509   build with newer gcc versions that no longer defines "riscos".
510
511 * December 22
512
513 - Daniel Stenberg added ares_getsock() that extracts the set of sockets to
514   wait for action on. Similar to ares_fds() but not restricted to using
515   select() for the waiting.
516
517 * November 25
518
519 - Yang Tse fixed some send() / recv() compiler warnings
520
521 * September 18
522
523 - Added constants that will be used by ares_getaddrinfo
524
525 - Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it
526   is available to ensure it works properly in a threaded environment.
527
528 * September 10
529
530 - configure fix for detecting a member in the sockaddr_in6 struct which failed
531   on ipv6-enabled HP-UX 11.00
532
533 Version 1.3.0 (August 29, 2005)
534
535 * August 21
536
537 - Alfredo Tupone provided a fix for the Windows code in get_iphlpapi_dns_info()
538   when getting the DNS server etc.
539
540 * June 19
541
542 - Added some checks for the addrinfo structure.
543
544 * June 2
545
546 - William Ahern:
547
548   Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
549   read event can come back from poll() on a valid SOCK_DGRAM socket but
550   recv(2) will still block. This patch doesn't ignore EAGAIN in
551   read_udp_packets(), though maybe it should. (This patch was edited by Daniel
552   Stenberg and a new configure test was added (imported from curl's configure)
553   to properly detect what non-blocking socket approach to use.)
554
555   I'm not quite sure how this was happening, but I've been seeing PTR queries
556   which seem to return empty responses. At least, they were empty when calling
557   ares_expand_name() on the record. Here's a patch which guarantees to
558   NUL-terminate the expanded name. The old behavior failed to NUL-terminate if
559   len was 0, and this was causing strlen() to run past the end of the buffer
560   after calling ares_expand_name() and getting ARES_SUCCESS as the return
561   value. If q is not greater than *s then it's equal and *s is always
562   allocated with at least one byte.
563
564 * May 16
565
566 - Added ares_getnameinfo which mimics the getnameinfo API (another feature
567   that could use testing).
568
569 * May 14
570
571 - Added an inet_ntop function from BIND for systems that do not have it.
572
573 * April 9
574
575 - Made sortlist support IPv6 (this can probably use some testing).
576
577 - Made sortlist support CIDR matching for IPv4.
578
579 * April 8
580
581 - Added preliminary IPv6 support to ares_gethostbyname. Currently, sortlist
582   does not work with IPv6. Also provided an implementation of bitncmp from
583   BIND for systems that do not supply this function. This will be used to add
584   IPv6 support to sortlist.
585
586 - Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family.
587   The function can lookup IPv6 addresses both from files (/etc/hosts) and
588   DNS lookups.
589
590 * April 7
591
592 - Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac
593   OS X.
594
595 * April 5
596
597 - Dominick Meglio: Provided implementations of inet_net_pton and inet_pton
598   from BIND for systems that do not include these functions.
599
600 * March 11, 2005
601
602 - Dominick Meglio added ares_parse_aaaa_reply.c and did various
603   adjustments. The first little steps towards IPv6 support!
604
605 * November 7
606
607 - Fixed the VC project and makefile to use ares_cancel and ares_version
608
609 * October 24
610
611 - The released ares_version.h from 1.2.1 says 1.2.0 due to a maketgz flaw.
612   This is now fixed.
613
614 Version 1.2.1 (October 20, 2004)
615
616 * September 29
617
618 - Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
619   when they made Alpha's) uses /etc/svc.conf for the purpose fixed below for
620   other OSes. He made c-ares check for and understand it if present.
621
622 - Now c-ares will use local host name lookup _before_ DNS resolving by default
623   if nothing else is told.
624
625 * September 26
626
627 - Henrik Stoerner: found out that c-ares does not look at the /etc/host.conf
628   file to determine the sequence in which to search /etc/hosts and DNS.  So on
629   systems where this order is defined by /etc/host.conf instead of a "lookup"
630   entry in /etc/resolv.conf, c-ares will always default to looking in DNS
631   first, and /etc/hosts second.
632
633   c-ares now looks at
634
635   1) resolv.conf (for the "lookup" line);
636   2) nsswitch.fon (for the "hosts:" line);
637   3) host.conf (for the "order" line).
638
639   First match wins.
640
641 - Dominick Meglio patched: C-ares on Windows assumed that the HOSTS file is
642   located in a static location. It assumed
643   C:\Windows\System32\Drivers\Etc. This is a poor assumption to make. In fact,
644   the location of the HOSTS file can be changed via a registry setting.
645
646   There is a key called DatabasePath which specifies the path to the HOSTS
647   file:
648   http://www.microsoft.com/technet/itsolutions/network/deploy/depovg/tcpip2k.mspx
649
650   The patch will make c-ares correctly consult the registry for the location
651   of this file.
652
653 * August 29
654
655 - Gisle Vanem fixed the MSVC build files.
656
657 * August 20
658
659 - Gisle Vanem made c-ares build and work with his Watt-32 TCP/IP stack.
660
661 * August 13
662
663 - Harshal Pradhan made a minor syntax change in ares_init.c to make it build
664   fine with MSVC 7.1
665
666 * July 24
667
668 - Made the lib get built static only if --enable-debug is used.
669
670 - Gisle Vanem fixed:
671
672   Basically in loops like handle_errors(), 'query->next' was assigned a local
673   variable and then query was referenced after the memory was freed by
674   next_server(). I've changed that so next_server() and end_query() returns
675   the next query. So callers should use this ret-value.
676
677   The next problem was that 'server->tcp_buffer_pos' had a random value at
678   entry to 1st recv() (luckily causing Winsock to return ENOBUFS).
679
680   I've also added a ares_writev() for Windows to streamline the code a bit
681   more.
682
683 * July 20
684 - Fixed a few variable return types for some system calls. Made configure
685   check for ssize_t to make it possible to use that when receiving the send()
686   error code. This is necessary to prevent compiler warnings on some systems.
687
688 - Made configure create config.h, and all source files now include setup.h that
689   might include the proper config.h (or a handicrafted alternative).
690
691 - Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
692   use 'int' for that.
693
694 - automake-ified and libool-ified c-ares. Now it builds libcares as a shared
695   lib on most platforms if wanted. (This bloated the size of the release
696   archive with another 200K!)
697
698 - Makefile.am now uses Makefile.inc for the c sources, h headers and man
699   pages, to make it easier for other makefiles to use the exact same set of
700   files.
701
702 - Adjusted 'maketgz' to use the new automake magic when building distribution
703   archives.
704
705 - Anyone desires HTML and/or PDF versions of the man pages in the release
706   archives?
707
708 * July 3
709 - Günter Knauf made c-ares build and run on Novell Netware.
710
711 * July 1
712 - Gisle Vanem provided Makefile.dj to build with djgpp, added a few more djgpp
713   fixes and made ares not use 'errno' to provide further info on Windows.
714
715 * June 30
716 - Gisle Vanem made it build with djgpp and run fine with the Watt-32 stack.
717
718 * June 10
719 - Gisle Vanem's init patch for Windows:
720
721   The init_by_resolv_conf() function fetches the DNS-server(s)
722   from a series of registry branches.
723
724   This can be wrong in the case where DHCP has assigned nameservers, but the
725   user has overridden these servers with other prefered settings. Then it's
726   wrong to use the DHCPNAMESERVER setting in registry.
727
728   In the case of no global DHCP-assigned or fixed servers, but DNS server(s)
729   per adapter, one has to query the adapter branches.  But how can c-ares know
730   which adapter is valid for use? AFAICS it can't. There could be one adapter
731   that is down (e.g. a VPN adapter).
732
733   So it's better to leave this to the IP Helper API (iphlapi) available in
734   Win-98/2000 and later. My patch falls-back to the old way if not available.
735
736 * June 8
737 - James Bursa fixed an init issue for RISC OS.
738
739 * May 11
740 - Nico Stappenbelt reported that when processing domain and search lines in
741   the resolv.conf file, the first entry encountered is processed and used as
742   the search list. According to the manual pages for both Linux, Solaris and
743   Tru64, the last entry of either a domain or a search field is used.
744
745   This is now adjusted in the code
746
747 Version 1.2.0 (April 13, 2004)
748
749 * April 2, 2004
750 - Updated various man pages to look nicer when converted to HTML on the web
751   site.
752
753 * April 1, 2004
754 - Dirk Manske provided a new function that is now named ares_cancel(). It is
755   used to cancel/cleanup a resolve/request made using ares functions on the
756   given ares channel. It does not destroy/kill the ares channel itself.
757
758 - Dominick Meglio cleaned up the formatting in several man pages.
759
760 * March 30, 2004
761 - Dominick Meglio's new ares_expand_string. A helper function when decoding
762   incoming DNS packages.
763
764 - Daniel Stenberg modified the Makefile.in to use a for loop for the man page
765   installation to improve overview and make it easier to add man pages.
766
767 Version 1.1.0 (March 11, 2004)
768
769 * March 9, 2004
770 - Gisle Vanem improved build on Windows.
771
772 * February 25, 2004
773 - Dan Fandrich found a flaw in the Feb 22 fix.
774
775 - Added better configure --enable-debug logic (taken from the curl configure
776   script). Added acinclude.m4 to the tarball.
777
778 * February 23, 2004
779 - Removed ares_free_errmem(), the function, the file and the man page. It was
780   not used and it did nothing.
781
782 - Fixed a lot of code that wasn't "64bit clean" and thus caused a lot of
783   compiler warnings on picky compilers.
784
785 * February 22, 2004
786 - Dominick Meglio made ares init support multiple name servers in the
787   NameServer key on Windows.
788
789 * February 16, 2004
790 - Modified ares_private.h to include libcurl's memory debug header if
791   CURLDEBUG is set. This makes all the ares-functions supervised properly by
792   the curl test suite. This also forced me to add inclusion of the
793   ares_private.h header in a few more files that are using some kind of
794   memory-related resources.
795
796 - Made the makefile only build ahost and adig if 'make demos' is used.
797
798 * February 10, 2004
799 - Dirk Manske made ares_version.h installed with 'make install'
800
801 * February 4, 2004
802 - ares_free_errmem() is subject for removal, it is simply present for future
803   purposes, and since we removed the extra parameter in strerror() it won't
804   be used by c-ares!
805 - configure --enable-debug now enables picky compiler options if gcc is used
806 - fixed several compiler warnings --enable-debug showed and Joerg Mueller-Tolk
807   reported
808
809 Version 1.0.0 (February 3, 2004)
810
811 * February 3, 2004
812 - now we produce the libcares.a library instead of the previous libares.a
813   since we are no longer compatible
814
815 * February 2, 2004
816
817 - ares_strerror() has one argument less. This is the first official
818   modification of the existing provided ares API.
819
820 * January 29, 2004
821
822 - Dirk Manske fixed how the socket is set non-blocking.
823
824 * January 4, 2004
825
826 - Dominick Meglio made the private gettimeofday() become ares_gettimeofday()
827   instead in order to not pollute the name space and risk colliding with
828   other libraries' versions of this function.
829
830 * October 24, 2003. Daniel Stenberg
831
832   Added ares_version().
833
834 Version 1.0-pre1 (8 October 2003)
835
836 - James Bursa made it run on RISC OS
837
838 - Dominick Meglio made it run fine on NT4
839
840 - Duncan Wilcox made it work fine on Mac OS X
841
842 - Daniel Stenberg adjusted the windows port
843
844 - liren at vivisimo.com made the initial windows port
845
846 * Imported the sources from ares 1.1.1