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