Bug 129428

Summary: ntp.conf(5) is incorrect - you can only use IP address on restrict lines
Product: Documentation Reporter: Stephen Allen <p0036343>
Component: Books & ArticlesAssignee: Thomas Abthorpe <tabthorpe>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sbin_ntp_doc_ntp.conf.5.patch none

Description Stephen Allen 2008-12-05 01:50:00 UTC
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."

Fix: 

n/a
How-To-Repeat: In the restrict line, use host DNS name instead of IP address.
Comment 1 Thomas Abthorpe freebsd_committer freebsd_triage 2009-01-28 16:37:24 UTC
Responsible Changed
From-To: freebsd-doc->tabthorpe

I'll take it.
Comment 2 Thomas Abthorpe freebsd_committer freebsd_triage 2009-01-30 19:35:47 UTC
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
Comment 3 Thomas Abthorpe freebsd_committer freebsd_triage 2009-02-09 17:23:33 UTC
State Changed
From-To: open->closed

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