aboutsummaryrefslogtreecommitdiff
path: root/include/resolv.h
Commit message (Collapse)AuthorAgeFilesLines
* Update our stub resolver to final version of libbind.Hajimu UMEMOTO2014-08-121-23/+28
|\ | | | | | | | | | | | | Obtained from: ISC Notes: svn path=/head/; revision=269867
| * Bring final version of libbind:Pedro F. Giffuni2014-08-051-23/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From http://www.isc.org/downloads/libbind/ The libbind functions have been separated from the BIND suite as of BIND 9.6.0. Originally from older versions of BIND, they have been continually maintained and improved but not installed by default with BIND 9. This standard resolver library contains the same historical functions and headers included with many Unix operating systems. In fact, most implementations are based on the same original code. At present, NetBSD maintains libbind code, now known as "netresolv". Notes: svn path=/vendor/resolver/dist/; revision=269610
| * Import the resolver part of BIND 9.4.3.vendor/resolver/9.4.3Hajimu UMEMOTO2008-12-141-1/+5
| | | | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=186083 svn path=/vendor/resolver/9.4.3/; revision=186084; tag=vendor/resolver/9.4.3
| * Vendor import of BIND 9.4.1Hajimu UMEMOTO2007-06-031-83/+82
| | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=170242
| * Vendor import of BIND 9.3.2Hajimu UMEMOTO2006-03-211-0/+506
| | | | Notes: svn path=/vendor/resolver/dist/; revision=156959
* Spelling fixes for include/Ulrich Spörlein2012-01-071-1/+1
| | | | Notes: svn path=/head/; revision=229781
* Remove the Berkeley clause 3's.Warner Losh2010-02-161-5/+1
| | | | | | | Add a few $FreeBSD$ Notes: svn path=/head/; revision=203964
* Merge the resolver part of BIND 9.4.3 into HEAD.Hajimu UMEMOTO2008-12-141-1/+5
| | | | | | | | | | | | | It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com> Notes: svn path=/head/; revision=186090
* Merge BIND 9.4.1 into main chunk.Hajimu UMEMOTO2007-06-031-83/+82
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=170244
* Upgrade res_update(3) and the friends to BIND9's one excluding TSIGHajimu UMEMOTO2006-05-211-2/+2
| | | | | | | | | support. X-MFC after: never Notes: svn path=/head/; revision=158787
* Comment out the function prototypes which our libc actuallyHajimu UMEMOTO2006-05-131-2/+6
| | | | | | | doesn't have. Notes: svn path=/head/; revision=158518
* Update the resolver in libc to BIND9's one.Hajimu UMEMOTO2006-03-211-147/+311
| | | | | | | | | | | | | | | | | | | | | | | | | Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc. Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them). Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe. Reviewed by: arch@ (no objection) Notes: svn path=/head/; revision=156960
* Decrease the value of RES_DFLRETRY from 4 to 2.Hajimu UMEMOTO2006-02-241-1/+1
| | | | | | | | | | PR: bin/62139 Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com> Obtained from: BIND9 MFC after: 1 week Notes: svn path=/head/; revision=155984
* Don't declare ___res_ext() twice.Stefan Farfeleder2005-09-121-2/+1
| | | | Notes: svn path=/head/; revision=150048
* Add the macro RES_DFLRETRY long-promised by resolver(5).Yaroslav Tykhiy2004-09-091-0/+1
| | | | | | | | | | | | | It specifies the default number of retries per a name server. This makes the code consistent with the manpage and allows to kill another constant in res_init.c that should have been a #define'd parameter. (This appears to be a case when the manpage was better than the code, so the latter was to be fixed.) PR: bin/62139 (in the audit trail) Notes: svn path=/head/; revision=134999
* Don't try to pass off a struct sockaddr as a struct sockaddr_in when itDag-Erling Smørgrav2004-03-151-2/+2
| | | | | | | | | | may in fact very well be a struct sockaddr_in6. Just use plain struct sockaddr. This brings us yet another step closer to a clean -O2 build. Notes: svn path=/head/; revision=127028
* Make the resolver(3) and many associated interfaces much more reentrant.Brian Feldman2004-02-251-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant. In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem. No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way. Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well. Notes: svn path=/head/; revision=126243
* Add support for timeout: and attempts: resolver options.Murray Stokely2003-12-071-0/+2
| | | | | | | | Submitted by: Paul Vixie <paul@vix.com> / ISC MFC After: 1 week Notes: svn path=/head/; revision=123236
* Eliminate 19 warnings in libc (at level WARNS=2) of theJacques Vidrine2003-02-271-0/+5
| | | | | | | `implicit declaration of function' variety. Notes: svn path=/head/; revision=111618
* Breath deep and take __P out of the system include files.Warner Losh2002-03-231-67/+66
| | | | | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure. Notes: svn path=/head/; revision=93032
* Implement EDNS0 support, as EDNS0 support will be made mandatory forHajimu UMEMOTO2001-06-101-0/+4
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=78012
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.Yoshinobu Inoue1999-12-281-0/+19
| | | | | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55163
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50473
* Remove the extern decl of ``h_errno''. It's alreadyBrian Somers1998-09-071-10/+1
| | | | | | | | | externed in netdb.h - where all of its #define values live. If anything requires h_errno here (nothing in /usr/src seems to) it's almost definitely broken. Notes: svn path=/head/; revision=38922
* Damn, bind8 includes added <arpa/nameser.h> as a prerequisite forPeter Wemm1998-06-111-15/+17
| | | | | | | | | | | | | <resolv.h>. This breaks user ppp at least, and goodness knows how many ports. :-( This a bit of a hack, but is probably simpler than duplicating the typedefs and protecting them from each other. Also, remove some temporary XXX notes that I forgot to remove before. Notes: svn path=/head/; revision=36898
* Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)Peter Wemm1998-06-111-32/+45
| | | | | | | | | | | since it has far wider impact than hostname lookups (including passwords). Note that this has more ugly symbol hiding and binary compatability hacks that can go away the second we bump majors. Obtained from: Mostly from diff against ISC bind-8.1.2 sources Notes: svn path=/head/; revision=36888
* Add "options no_tld_query" to resolv.conf.Brian Somers1997-09-011-1/+2
| | | | | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers Notes: svn path=/head/; revision=28982
* merge in bind-4.9.6 changes (only effect is __res_send #define reverted)Peter Wemm1997-06-271-3/+3
| | | | Notes: svn path=/head/; revision=26975
* Back out all of yesterdays include file changes.Eivind Eklund1997-05-071-3/+1
| | | | Notes: svn path=/head/; revision=25551
* Make a lot of include-files self-contained. I excluded the patches changingEivind Eklund1997-05-071-1/+3
| | | | | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org> Notes: svn path=/head/; revision=25520
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-231-1/+1
| | | | Notes: svn path=/head/; revision=23037
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Update the resolver definitions from bind-4.9.4-P1 to 4.9.5-P1 level.Peter Wemm1996-12-301-48/+89
| | | | | | | (More commits to come) Notes: svn path=/head/; revision=21055
* Hand merge in the bind-4.9.4-P1 resolver updates.Peter Wemm1996-08-291-2/+15
| | | | Notes: svn path=/head/; revision=17902
* Fix a bunch of spelling errors in the comment fieldsMike Pritchard1996-01-301-2/+2
| | | | | | | of a bunch of system include files. Notes: svn path=/head/; revision=13771
* Update resolver include files to bind-4.9.3-rel levelPeter Wemm1996-01-071-2/+3
| | | | Notes: svn path=/head/; revision=13297
* Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1)Peter Wemm1995-08-201-13/+24
| | | | | | | | | | Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way. Obtained from: Paul Vixie <paul@vix.com> Notes: svn path=/head/; revision=10132
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8858
* get* rework and new bind codePaul Traina1994-09-251-49/+109
| | | | Notes: svn path=/head/; revision=3070
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-241-0/+164
Notes: svn path=/head/; revision=1539