summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* compare and shift buffer against a fixed length not strlen derived values.pyr2009-06-051-6/+6
| | | | ok otto@
* simplify the 'family' option parser and make it more evident what we'repyr2009-06-041-1/+12
| | | | | | now doing. ok deraadt@
* Add a resolv.conf option to specify the order in which getaddrinfopyr2009-06-041-1/+29
| | | | | | | | | | | PF_UNSPEC queries are made. While there change the default from inet6 first then inet4 to inet4 first then inet6, this prevents the many people with IPv4 only connectivity from constantly trying to contact IPv6 addresses, and also unbreaks many ports who don't use getaddrinfo right. ok deraadt@, plenty of cheering in the room wrt the idea, not loud enough complaining from the v6 crowd.
* Add resolv.conf(5) option to force lookups by TCP: "options tcp"djm2008-08-151-18/+20
| | | | | | | | | | | | | | Also Extend "nameserver" declaration syntax to support port numbers. To avoid ambiguity these are only parsed when the address is enclosed in square brackets, e.g. "nameserver [127.0.0.1]:5353" Together these changes make forwarding DNS over a SSH tunnel very easy, but unfortunately some programs in ports/ implement their own resolvers (e.g. firefox). These will need to be modified to support these options separately. fixes jsing@ reyk@ ok deraadt@ millert@ krw@ + "I like it" from lots
* /*FALLTHRU*/ -> /* FALLTHROUGH */ray2007-08-051-2/+2
|
* If fgetln() != NULL, len == 0 is impossible, so remove check.ray2006-09-231-3/+3
| | | | OK otto@ and jaredy@.
* handle chroot and res_init calls better. diagnosis assistance from otto.tedu2005-12-221-21/+18
| | | | ok deraadt otto.
* zap rcsid.espie2005-08-061-10/+1
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* make the resolver stat resolv.conf and update if it changes.tedu2005-03-301-2/+36
| | | | useful feedback and ok deraadt@
* ansify. ok deraadt@ moritz@otto2005-03-251-11/+9
|
* major bump to libc and libpthread to break the dependency of amarc2004-06-071-8/+4
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* thread safer libc (note: safer, not safe)marc2003-01-281-86/+101
| | | | | | | | | | Access to the global _res structure replaced by pointers to a per thread instance. If unthreaded the pointer is to the global structure. Also replaced a 64k stack array with malloc-ed memory so threaded aps (with a default 64k stack) have a chance at working. ok deraadt@
* kill more strcpyderaadt2002-07-251-4/+4
|
* %d -> %u. mostly in #ifdef DEBUG.itojun2002-06-271-4/+4
|
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-161-4/+4
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* add "options insecure[12]" support for /etc/resolv.conf.itojun2001-09-141-2/+6
| | | | | | insecure1 is necessary for IPv6 dynamic DNS server discovery, draft-ietf-ipngwg-dns-discovery-02.txt. sync with kame. ok'ed by angelos
* missing freeaddrinfo(). PR 1907itojun2001-06-301-2/+5
|
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-11/+7
|
* support EDNS0 (RFC2671) buffer size notification on DNS queries.itojun2001-06-111-2/+4
| | | | | | | | | "options edns0" in /etc/resolv.conf will enable the behavior. no behavior change if you don't have the line. see resolv.conf(5) for more details. EDNS0 is useful for avoiding TCP DNS queries/replies on larger DNS responses. also, draft-ietf-dnsext-message-size-* plans to mandate EDNS0 support for DNS clients that support IPv6 transport.
* seperate -> separate, okay aaron@provos2000-11-101-3/+3
|
* ipv6 support in resolver. "nameserver" line in /etc/resolv.conf now takesitojun2000-06-221-2/+113
| | | | ipv6 address.
* typoderaadt1999-09-031-3/+3
|
* Use strtol() and strtoul() instead of atoi(). This allows us to catchmillert1999-09-031-10/+15
| | | | errors reasonably and deal correctly with unsigned quantities.
* Use fgetln(3) instead of fgets(3) so we can easily recognize linesmillert1998-03-161-4/+13
| | | | that are too long and ignore them instead of corrupting later entries.
* buff overflowflipk1997-07-151-3/+7
|
* the before mentioned random number generator.provos1997-04-131-15/+2
|
* Use in_addr_t not u_long and use in_port_t in some cases insteadmillert1997-04-051-6/+3
| | | | of u_short or u_int16_t.
* use MATCH()deraadt1997-04-031-3/+3
|
* Integrate BIND 4.9.5 resolver and associated routines.downsj1997-03-131-77/+182
| | | | Includes the DNS aware getnetby*() routines and IPv6 support.
* cannot be static, named uses itderaadt1996-09-221-2/+2
|
* random function namederaadt1996-09-221-3/+2
|
* randomize _res.id at start; could do better i hopederaadt1996-09-221-3/+7
|
* Remove dead codetholo1996-09-151-3/+2
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* use strncpy correctlyderaadt1996-08-271-1/+4
|
* use issetugid()deraadt1996-08-251-4/+5
|
* Fix RCS idstholo1996-08-191-8/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* if setuid, no env variablesderaadt1996-08-181-2/+3
|
* netbsd: bind 4.9.3dm1996-02-191-5/+27
|
* initial import of NetBSD treederaadt1995-10-181-0/+394