From nobody@FreeBSD.org  Fri Dec  5 01:40:53 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E4D941065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Dec 2008 01:40:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D5D228FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Dec 2008 01:40:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mB51ergl049391
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Dec 2008 01:40:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mB51erH9049371;
	Fri, 5 Dec 2008 01:40:53 GMT
	(envelope-from nobody)
Message-Id: <200812050140.mB51erH9049371@www.freebsd.org>
Date: Fri, 5 Dec 2008 01:40:53 GMT
From: Stephen Allen <p0036343@brookes.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ntp.conf(5) is incorrect - you can only use IP address on restrict lines
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         129428
>Category:       docs
>Synopsis:       ntp.conf(5) is incorrect - you can only use IP address on restrict lines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tabthorpe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 05 01:50:00 UTC 2008
>Closed-Date:    Mon Feb 09 17:23:34 UTC 2009
>Last-Modified:  Mon Feb 09 17:23:34 UTC 2009
>Originator:     Stephen Allen
>Release:        7.0
>Organization:
Oxford Brookes University
>Environment:
FreeBSD <hostname> 7.0-RELEASE-p6 FreeBSD 7.0-RELEASE-p6 #0: Mon Nov 24 10:59:10 UTC 2008     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
In the section "Access Control Commands --> restrict", it says:

"The address argument expressed in dotted-quad form is the address of a host or network.  Alternatively, the address argument can be a valid host DNS name."

I have found that the address argument MUST be an ip address only - it doesn't work with a valid host DNS name.  This corroborated by the official documentation at: http://support.ntp.org/bin/view/Support/AccessRestrictions#Section_6.5.1.2.1. which says:

"You must use an IP address on the restrict line."
>How-To-Repeat:
In the restrict line, use host DNS name instead of IP address.
>Fix:
n/a

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->tabthorpe 
Responsible-Changed-By: tabthorpe 
Responsible-Changed-When: Wed Jan 28 16:37:24 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129428 

From: Thomas Abthorpe <tabthorpe@freebsd.org>
To: bug-followup@freebsd.org,
 p0036343@brookes.ac.uk
Cc:  
Subject: Re: docs/129428: ntp.conf(5) is incorrect - you can only use IP address on restrict lines
Date: Fri, 30 Jan 2009 14:35:47 -0500

 --Boundary-00=_Ua1gJof+CqoXkpz
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Please find attached a patch to remove hostname reference from the 
 restrictions ACL.
 
 
 Thomas
 
 -- 
 Thomas Abthorpe		| FreeBSD Committer
 tabthorpe@FreeBSD.org	| http://people.freebsd.org/~tabthorpe
 
 --Boundary-00=_Ua1gJof+CqoXkpz
 Content-Type: text/x-diff;
   charset="iso 8859-15";
   name="sbin_ntp_doc_ntp.conf.5.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="sbin_ntp_doc_ntp.conf.5.patch"
 
 Index: ntp.conf.5
 ===================================================================
 --- ntp.conf.5	(revision 187828)
 +++ ntp.conf.5	(working copy)
 @@ -1,7 +1,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd December 21, 2006
 +.Dd January 28, 2009
  .Dt NTP.CONF 5
  .Os
  .Sh NAME
 @@ -1475,9 +1475,6 @@
  .Ar address
  argument expressed in
  dotted-quad form is the address of a host or network.
 -Alternatively, the
 -.Ar address
 -argument can be a valid host DNS name.
  The
  .Ar mask
  argument expressed in dotted-quad form defaults to
 
 --Boundary-00=_Ua1gJof+CqoXkpz--
State-Changed-From-To: open->closed 
State-Changed-By: tabthorpe 
State-Changed-When: Mon Feb 9 17:23:33 UTC 2009 
State-Changed-Why:  
You can use hostname in restirct ACL, 
http://www.cis.udel.edu/~mills/ntp/html/accopt.html#restrict for ntp 
4.2.4p5 located in src 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129428 
>Unformatted:
