Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2022 08:22:19 GMT
From:      Gordon Bergling <gbe@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6d105d73ca5c - stable/12 - man5/{hosts,resolver}.5: note that IPv6 addresses are allowed.
Message-ID:  <202211140822.2AE8MJZh083693@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=6d105d73ca5c6301d4cd5942771082054a9c6df1

commit 6d105d73ca5c6301d4cd5942771082054a9c6df1
Author:     Ceri Davies <ceri@FreeBSD.org>
AuthorDate: 2021-05-25 15:16:24 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-11-14 08:16:46 +0000

    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)
    
    (cherry picked from commit a23b08cf98d92ff82adeebc84673e9bd3cd0a6da)
---
 share/man/man5/hosts.5    | 10 ++++++----
 share/man/man5/resolver.5 |  4 ++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/share/man/man5/hosts.5 b/share/man/man5/hosts.5
index d80c544b3644..ca7586f039b7 100644
--- a/share/man/man5/hosts.5
+++ b/share/man/man5/hosts.5
@@ -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
diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5
index cc439f123442..d5c02599bafb 100644
--- a/share/man/man5/resolver.5
+++ b/share/man/man5/resolver.5
@@ -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



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