From owner-svn-src-head@FreeBSD.ORG Fri May 29 07:55:44 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B42FA106564A; Fri, 29 May 2009 07:55:44 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A294A8FC13; Fri, 29 May 2009 07:55:44 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4T7tiKS064048; Fri, 29 May 2009 07:55:44 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4T7tiSY064047; Fri, 29 May 2009 07:55:44 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <200905290755.n4T7tiSY064047@svn.freebsd.org> From: Xin LI Date: Fri, 29 May 2009 07:55:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193024 - head/lib/libc/net X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2009 07:55:45 -0000 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