man5/{hosts,resolver}.5: note that IPv6 addresses are allowed.

The patch in the PR largely no longer applied due to age, but
thanks to Evgeniy Khramtsov for the patches in the PR.

PR:		120024
Reported by:	bcran
Approved by:	blackend (mentor)
Obtained from:	Evgeniy Khramtsov <evgeniy@khramtsov.org> (partly)
This commit is contained in:
Ceri Davies 2021-05-25 16:16:24 +01:00
parent 2770978d05
commit a23b08cf98
2 changed files with 8 additions and 6 deletions

View File

@ -28,7 +28,7 @@
.\" @(#)hosts.5 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
.Dd December 25, 2013
.Dd May 25, 2021
.Dt HOSTS 5
.Os
.Sh NAME
@ -64,9 +64,10 @@ These include addresses for the local interfaces that
.Xr ifconfig 8
needs at boot time and a few machines on the local network.
.Pp
Network addresses are specified in the conventional
``.'' (dot) notation using the
.Xr inet_addr 3
Network addresses are specified in either the conventional
``.'' (dot) notation for IPv4 or colon hexadecimal notation for IPv6,
as understood by the
.Xr inet_pton 3
routine
from the Internet address manipulation library,
.Xr inet 3 .
@ -83,6 +84,7 @@ file resides in
.El
.Sh SEE ALSO
.Xr gethostbyname 3 ,
.Xr inet 3 ,
.Xr nsswitch.conf 5 ,
.Xr ifconfig 8
.Rs

View File

@ -28,7 +28,7 @@
.\" @(#)resolver.5 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
.Dd August 16, 2018
.Dd May 25, 2021
.Dt RESOLVER 5
.Os
.Sh NAME
@ -54,7 +54,7 @@ and the domain search path is constructed from the domain name.
The different configuration options are:
.Bl -tag -width nameserver
.It Sy nameserver
Internet address (in dot notation) of a name server
IPv4 or IPv6 address of a name server
that the resolver should query.
Up to
.Dv MAXNS