summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-02Renamed c-ares setup.h to ares_setup.hYang Tse1-1/+1
2009-08-27Support lookup of IPv4 literals in ares_gethostbyname(), even when the ↵Steinar H. Gunderson1-5/+9
address family is set to AF_INET6.
2009-04-14fix compiler warning: implicit conversion shortens 64-bit value into a ↵Yang Tse1-2/+2
32-bit value
2009-02-03* February 3 2009 (Phil Blundell)Phil Blundell1-7/+7
- If the server returns garbage or nothing at all in response to an AAAA query, go on and ask for A records anyway.
2009-01-31- ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolvingDaniel Stenberg1-41/+54
either AF_INET6 or AF_INET. It works by accepting any of the looksups in the hosts file, and it resolves the AAAA field with a fallback to A.
2009-01-18Constified some arguments in local functions.Gisle Vanem1-9/+11
2008-11-25In preparation for the upcomming IPv6 nameservers patch, the internalYang Tse1-4/+4
ares_addr union is now changed into an internal struct which also holds the address family.
2008-11-20use unsigned short better intead of mixing with ints to prevent compilerDaniel Stenberg1-5/+7
warnings
2008-11-19- Brad Spencer brought the new function ares_gethostbyname_file() which simplyDaniel Stenberg1-0/+25
resolves a host name from the given file, using the regular hosts syntax.
2008-09-17adjust inclusion of "nameser.h"Yang Tse1-13/+8
2008-09-15include header file only when availableYang Tse1-1/+12
2008-09-11move inclusion of ares_private.h lastYang Tse1-1/+1
2008-07-03- Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup andDaniel Stenberg1-0/+9
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 Stenberg1-0/+3
2008-04-07fix compiler warning: local variable may be used without having been initializedYang Tse1-1/+1
2007-11-28fix next_lookup() to continue searching even if c-ares failed to load theDaniel Stenberg1-1/+5
/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. Gunderson1-3/+5
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. Gunderson1-2/+2
Patch from the Google tree.
2007-10-02Fixed the problem where next_lookup would use 'status' uninitialized. NowDaniel Stenberg1-7/+6
it gets passed the initial value as an argument.
2007-09-30Fix a memory leak that I recently inadvertedly introduced.Steinar H. Gunderson1-0/+1
2007-09-29Use ISDIGIT instead of isdigit; fixes a gcc warning.Steinar H. Gunderson1-1/+1
2007-09-29Be stricter about what's a valid IP address in fake_hostent. (Patch from the ↵Steinar H. Gunderson1-1/+21
Google tree.)
2007-09-28Unrevert previous 'missing' hunks. They were missing since the patch is ↵Steinar H. Gunderson1-2/+2
still in for review :-)
2007-09-28Yet more missing hunks... Nggh.Steinar H. Gunderson1-2/+2
2007-09-28Make the query callbacks return the number of timeouts that happened during ↵Steinar H. Gunderson1-11/+13
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 Stenberg1-119/+20
2007-06-02Ashish Sharma provided a patch for supporting multiple entries in theDaniel Stenberg1-20/+119
/etc/hosts file. Patch edited for coding style and functionality by me (Daniel).
2007-02-26Removed inclusion of <sys/types.h> in .c-filesGisle Vanem1-3/+2
since it's already included through "setup.h".
2007-02-19add debug messages for initialization failuresYang Tse1-2/+17
2007-01-29fix compiler warning "discards qualifiers from pointer target type" in debug ↵Yang Tse1-1/+1
builds
2006-08-04Fixed comment.Gisle Vanem1-1/+1
2006-07-222nd try adding CVS id.Gisle Vanem1-1/+1
2006-07-22Added CVS id.Gisle Vanem1-0/+2
2005-08-18detabifiedDaniel Stenberg1-7/+7
2005-04-22Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.Daniel Stenberg1-0/+5
2005-04-09Made sortlist support IPv6 (this can probably use some testing)Dominick Meglio1-8/+64
2005-04-09Made sortlist support CIDR matching for IPv4Dominick Meglio1-5/+7
2005-04-08Added preliminary IPv6 support to ares_gethostbynameDominick Meglio1-37/+57
2005-04-08Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the familyDominick Meglio1-1/+1
2005-04-06Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OSDaniel Stenberg1-0/+3
X.
2005-03-21the same fix here too, typecast to prevent win32 compiler warningDaniel Stenberg1-11/+11
2004-12-10untabifiedDaniel Stenberg1-56/+56
2004-11-10Replace IsNT with IS_NT().Gisle Vanem1-57/+57
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 Stenberg1-58/+58
2004-09-26Dominick Meglio host file path discovery patch for windowsDaniel Stenberg1-6/+16
2004-08-20More patches for Watt-32 on Win32; don't include "nameser.h".Gisle Vanem1-1/+6
2004-07-22- Fixed a few variable return types for some system calls. Made configureDaniel Stenberg1-0/+1
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 Stenberg1-0/+6
2004-02-02remove rcsid stuff from c files, it serves no useful purposeDaniel Stenberg1-2/+0
2003-10-07ares 1.1.1 with collected applied patchesDaniel Stenberg1-0/+297