aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyname.c
AgeCommit message (Collapse)Author
2008-09-15include header file only when availableYang Tse
2008-09-11move inclusion of ares_private.h lastYang Tse
2008-07-03- Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup andDaniel Stenberg
the target host has only A records, it automatically falls back to an AF_INET lookup and gives you the A results. However, if the target host has a CNAME record, this behaviour is defeated since the original query does return some data even though ares_parse_aaa_reply() doesn't consider it relevant. Here's a small patch to make it behave the same with and without the CNAME.
2008-05-08check for strings.h in configure and use it for the strcasecmp() protoDaniel Stenberg
2008-04-07fix compiler warning: local variable may be used without having been initializedYang Tse
2007-11-28fix next_lookup() to continue searching even if c-ares failed to load theDaniel Stenberg
/etc/hosts file, pointed out by Erik Kline: http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2007-11/0027.shtml
2007-11-15When looking up in DNS and then in the hosts file, return the error code ↵Steinar H. Gunderson
from DNS if both fail, instead of returning the error code from the hosts file, as today. Patch from the Google tree.
2007-11-15Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. ↵Steinar H. Gunderson
Patch from the Google tree.
2007-10-02Fixed the problem where next_lookup would use 'status' uninitialized. NowDaniel Stenberg
it gets passed the initial value as an argument.
2007-09-30Fix a memory leak that I recently inadvertedly introduced.Steinar H. Gunderson
2007-09-29Use ISDIGIT instead of isdigit; fixes a gcc warning.Steinar H. Gunderson
2007-09-29Be stricter about what's a valid IP address in fake_hostent. (Patch from the ↵Steinar H. Gunderson
Google tree.)
2007-09-28Unrevert previous 'missing' hunks. They were missing since the patch is ↵Steinar H. Gunderson
still in for review :-)
2007-09-28Yet more missing hunks... Nggh.Steinar H. Gunderson
2007-09-28Make the query callbacks return the number of timeouts that happened during ↵Steinar H. Gunderson
the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
2007-06-04Revered Ashish Sharma's multiple entries patch, as it caused memory madnessDaniel Stenberg
2007-06-02Ashish Sharma provided a patch for supporting multiple entries in theDaniel Stenberg
/etc/hosts file. Patch edited for coding style and functionality by me (Daniel).
2007-02-26Removed inclusion of <sys/types.h> in .c-filesGisle Vanem
since it's already included through "setup.h".
2007-02-19add debug messages for initialization failuresYang Tse
2007-01-29fix compiler warning "discards qualifiers from pointer target type" in debug ↵Yang Tse
builds
2006-08-04Fixed comment.Gisle Vanem
2006-07-222nd try adding CVS id.Gisle Vanem
2006-07-22Added CVS id.Gisle Vanem
2005-08-18detabifiedDaniel Stenberg
2005-04-22Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.Daniel Stenberg
2005-04-09Made sortlist support IPv6 (this can probably use some testing)Dominick Meglio
2005-04-09Made sortlist support CIDR matching for IPv4Dominick Meglio
2005-04-08Added preliminary IPv6 support to ares_gethostbynameDominick Meglio
2005-04-08Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the familyDominick Meglio
2005-04-06Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OSDaniel Stenberg
X.
2005-03-21the same fix here too, typecast to prevent win32 compiler warningDaniel Stenberg
2004-12-10untabifiedDaniel Stenberg
2004-11-10Replace IsNT with IS_NT().Gisle Vanem
Return correct timeval in windows_port.c. Squelch gcc warnings: use 'ares_socket_t' in ares_fds.c. Don't cast a 'lvalue' in ares_init.c.
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-09-26Dominick Meglio host file path discovery patch for windowsDaniel Stenberg
2004-08-20More patches for Watt-32 on Win32; don't include "nameser.h".Gisle Vanem
2004-07-22- Fixed a few variable return types for some system calls. Made configureDaniel Stenberg
check for ssize_t to make it possible to use that when receiving the send() error code. This is necessary to prevent compiler warnings on some systems. - Made configure create config.h, and all source files now include setup.h that might include the proper config.h (or a handicrafted alternative). - Switched to 'ares_socket_t' type for sockets in ares, since Windows don't use 'int' for that. - automake-ified and libool-ified c-ares. Now it builds libcares as a shared lib on most platforms if wanted. (This bloated the size of the release archive with another 200K!) - Makefile.am now uses Makefile.inc for the c sources, h headers and man pages, to make it easier for other makefiles to use the exact same set of files. - Adjusted 'maketgz' to use the new automake magic when building distribution archives.
2004-07-01djgpp fixes by GisleDaniel Stenberg
2004-02-02remove rcsid stuff from c files, it serves no useful purposeDaniel Stenberg
2003-10-07ares 1.1.1 with collected applied patchesDaniel Stenberg