summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_query.c
Commit message (Collapse)AuthorAgeFilesLines
* hostalias() is not thread-safe. So, introduce _res_hostalias()ume2005-04-151-11/+21
| | | | | | and use it. Obtained from: BIND9
* Unbreak world.ru2004-04-211-3/+2
|
* MFdragonfly: resolver fix for timeouts on unqualified hostnamesnjl2004-04-211-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | res_search only incremented got_servfail for h_errno == TRY_AGAIN *AND* hp->rcode == SERVFAIL. However, there are cases such as timeouts where rcode is not always set to SERVFAIL. This leads to inconsistent nameserver operation during multi-domain and truncated dot searches, especially during booting when portions of the network are being brought up simultanious with dns lookups. This patch attempts to correct the problem by unconditionally terminating the search if TRY_AGAIN is returned (after res_query has gone through all retries and name servers) instead of trying other domain elements in the domain seach path. This patch should fix reported problems (which I can reproduce) with some NFS mounts failing during boot. This occured because mount_nfs thought the host name lookup returned a definitive failure using a non-dotted host name when, in fact, it timed out on the first part (host.search.domain.name) and got a definitive host-not-found response on the second part (host.). Generally speaking, search path name server timeouts can exceed 60 seconds per element and most machines which consistently timeout on earlier portions of a search path are effectively non-operational due to the imposed delays. It is more important for DNS lookups to return the proper error code then to be able to recover a valid lookup in later portions of the search path in these situations. Obtained from: DragonFly MFC after: 3 weeks
* Restore vendor ID.obrien2003-03-031-2/+2
|
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-02-161-0/+1
| | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
* Backout the increase of MAXPACKET from 1024 to 65536: itnectar2002-09-151-1/+5
| | | | | | broke pthreads. Reported by: mbr, tjr
* When using res_send/res_query/res_search, the caller must eithernectar2002-09-131-5/+1
| | | | | | | | | insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary. Do the conservative thing and make sure enough space is available. Reviewed by: silence on freebsd-audit
* Fix syntax error which occurred when LIBC_SCCS was defined.robert2002-07-071-1/+1
|
* Fix the style of the SCM ID's.obrien2002-03-221-1/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove 'register' keyword.obrien2002-03-211-1/+1
|
* Implement EDNS0 support, as EDNS0 support will be made mandatory forume2001-06-101-0/+2
| | | | | | | | | | | IPv6 transport-ready resolvers/DNS servers. Need careful configuration when enable it. (default config is not affected). See manpage for details. XXX visible symbol __res_opt() is added, however, it is not supposed to be called from outside, libc minor is not bumped. Obtained from: KAME/NetBSD
* Add unsigned char cast to ctype macros argache1999-11-041-3/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Implement the weak aliases for private entry points in the inet_*jdp1998-09-021-1/+12
| | | | | | | | | | | and res_* modules in a way that works for ELF. I moved the aliases out of res_stubs.c and into the individual modules where the entry points are defined. Weak aliases don't work in ELF unless that is the case. (Actually, I'm surprised it worked for a.out.) This should fix the undefined "inet_addr" and related symbols in various applications that fail to include <arpa/inet.h> or <resolv.h> as they are supposed to do.
* Update the resolver parts to bind-8.1.2 level. I have not touched thepeter1998-06-111-26/+35
| | | | | | getXXXXbyYYYY() interfaces yet. Obtained from: diff relative to bind-8.1.2 sources
* Add "options no_tld_query" to resolv.conf.brian1997-09-011-3/+3
| | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers
* Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-271-9/+20
| | | | overflow problem differently.
* If we're running setuid/setguid then don't open the host alias file toimp1997-03-241-1/+4
| | | | | | | | prevent information leakage. Closes PR 2578 Submitted by: Julian Assange
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Here goes.. Bring the 4.9.5-P1 resolver into -current. This has thepeter1996-12-301-5/+6
| | | | | DNSSEC stuff, among other things. There are also some renamed functions, I've left out the res_stubs.c from this commit in case cvs bombs out..
* Sigh, back out the last bright idea I had here about compiling the res_*peter1996-08-301-0/+386
| | | | | | | | routines from contrib/bind directly. There were too many problems, including having to add -DUSE_OPTIONS_H to the entire libc source in order for the contrib code to pick up it's options, and so on. Instead, I've merged the changes, libc is now self contained again.
* Merge in bind-4.9.4-P1 resolver...peter1996-08-291-383/+0
|
* Merge the 4.9.3-rel code into the res_* parts. The gethostXXXbyYYYpeter1996-01-071-17/+17
| | | | parts are not quite so simple..
* Fix bogus include paths, some of which stopped libresolv from compiling.bde1995-08-211-2/+2
|
* Update the resolver part of libc to bind-4.9.3-beta24 level (from beta9p1)peter1995-08-201-27/+40
| | | | | | | | Note that this was done by selective patching from diffs, to not conflict with the 4.4bsd base code.. This was *not* a trivial task.. I have been testing this code (apart from cosmetic changes) in my libc for a while now. Obtained from: Paul Vixie <paul@vix.com>
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* remove need for -DDEBUG from resolver code (conflict with db/hash)pst1994-09-251-11/+1
|
* get* rework and new bind codepst1994-09-251-77/+154
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+303
OpenPOWER on IntegriCloud