diff options
| author | itojun <> | 2001-06-11 10:06:01 +0000 | 
|---|---|---|
| committer | itojun <> | 2001-06-11 10:06:01 +0000 | 
| commit | 3181f54059d8f111597b6e6ebec0e24f7939ada7 (patch) | |
| tree | bfe7ada7d6c92fea65c972ec4fb3bcfcdbfc2dc5 /src/lib/libc/net/res_debug.c | |
| parent | e48fbbe799cf5b7ff38a184af2aa7f3ce90f7f65 (diff) | |
| download | openbsd-3181f54059d8f111597b6e6ebec0e24f7939ada7.tar.gz openbsd-3181f54059d8f111597b6e6ebec0e24f7939ada7.tar.bz2 openbsd-3181f54059d8f111597b6e6ebec0e24f7939ada7.zip | |
support EDNS0 (RFC2671) buffer size notification on DNS queries.
"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.
Diffstat (limited to 'src/lib/libc/net/res_debug.c')
| -rw-r--r-- | src/lib/libc/net/res_debug.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/lib/libc/net/res_debug.c b/src/lib/libc/net/res_debug.c index e1894b1508..54be69cef7 100644 --- a/src/lib/libc/net/res_debug.c +++ b/src/lib/libc/net/res_debug.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: res_debug.c,v 1.10 2000/07/07 20:59:47 deraadt Exp $ */ | 1 | /* $OpenBSD: res_debug.c,v 1.11 2001/06/11 10:05:59 itojun Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * ++Copyright++ 1985, 1990, 1993 | 4 | * ++Copyright++ 1985, 1990, 1993 | 
| @@ -82,7 +82,7 @@ | |||
| 82 | static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; | 82 | static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; | 
| 83 | static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; | 83 | static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; | 
| 84 | #else | 84 | #else | 
| 85 | static char rcsid[] = "$OpenBSD: res_debug.c,v 1.10 2000/07/07 20:59:47 deraadt Exp $"; | 85 | static char rcsid[] = "$OpenBSD: res_debug.c,v 1.11 2001/06/11 10:05:59 itojun Exp $"; | 
| 86 | #endif | 86 | #endif | 
| 87 | #endif /* LIBC_SCCS and not lint */ | 87 | #endif /* LIBC_SCCS and not lint */ | 
| 88 | 88 | ||
| @@ -1028,6 +1028,8 @@ __p_option(option) | |||
| 1028 | case RES_DNSRCH: return "dnsrch"; | 1028 | case RES_DNSRCH: return "dnsrch"; | 
| 1029 | case RES_INSECURE1: return "insecure1"; | 1029 | case RES_INSECURE1: return "insecure1"; | 
| 1030 | case RES_INSECURE2: return "insecure2"; | 1030 | case RES_INSECURE2: return "insecure2"; | 
| 1031 | case RES_USE_INET6: return "inet6"; | ||
| 1032 | case RES_USE_EDNS0: return "edns0"; | ||
| 1031 | default: sprintf(nbuf, "?0x%lx?", (u_long)option); | 1033 | default: sprintf(nbuf, "?0x%lx?", (u_long)option); | 
| 1032 | return (nbuf); | 1034 | return (nbuf); | 
| 1033 | } | 1035 | } | 
