Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2009 07:55:44 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193024 - head/lib/libc/net
Message-ID:  <200905290755.n4T7tiSY064047@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri May 29 07:55:44 2009
New Revision: 193024
URL: http://svn.freebsd.org/changeset/base/193024

Log:
  Document how to enable strict RFC 1034 enforcements.
  
  PR:		kern/129477

Modified:
  head/lib/libc/net/resolver.3

Modified: head/lib/libc/net/resolver.3
==============================================================================
--- head/lib/libc/net/resolver.3	Fri May 29 07:34:54 2009	(r193023)
+++ head/lib/libc/net/resolver.3	Fri May 29 07:55:44 2009	(r193024)
@@ -28,7 +28,7 @@
 .\"     @(#)resolver.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd November 4, 2006
+.Dd May 29, 2009
 .Dt RESOLVER 3
 .Os
 .Sh NAME
@@ -401,6 +401,19 @@ function properly if the programmer atte
 .Va _res
 structure in an attempt to replace the per-thread version referred to
 by that macro.
+.Pp
+The following compile-time option can be specified to change the default
+behavior of resolver routines when necessary.
+.Bl -tag -width RES_ENFORCE_RFC1034
+.It Dv RES_ENFORCE_RFC1034
+If this symbol is defined during compile-time,
+.Fn res_search
+will enforce RFC 1034 check, namely, disallow using of underscore character
+within host names.
+This is used by the standard host lookup routines like
+.Xr gethostbyname 3 .
+For compatibility reasons this option is not enabled by default.
+.El
 .Sh RETURN VALUES
 The
 .Fn res_init



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905290755.n4T7tiSY064047>