]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
hosts.5: Clarify capability for IPv6 outside of examples
authorThomas Bartelsmeier <t.bartelsmeier@gmail.com>
Mon, 29 Jun 2020 15:07:16 +0000 (17:07 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 30 Jun 2020 07:33:46 +0000 (09:33 +0200)
Resolves https://bugzilla.kernel.org/show_bug.cgi?id=208279

Signed-off-by: Thomas Bartelsmeier <t.bartelsmeier@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/hosts.5

index cb055f5f69c381fa0f4588ebf92be6c286502cfe..1230f9303eb8d5ccf64104193aeafa8501d8e604 100644 (file)
@@ -42,6 +42,7 @@ line should be present with the following information:
 IP_address canonical_hostname [aliases...]
 .RE
 .PP
+The IP address can conform to either IPv4 or IPv6.
 Fields of the entry are separated by any number of blanks and/or
 tab characters.
 Text from a "#" character until the end of the line is
@@ -53,6 +54,8 @@ alphabetic character and end with an alphanumeric character.
 Optional aliases provide for name changes, alternate spellings,
 shorter hostnames, or generic hostnames (for example,
 .IR localhost ).
+If required, a host may have two separate entries in this file;
+one for each version of the Internet Protocol (IPv4 and IPv6).
 .PP
 The Berkeley Internet Name Domain (BIND) Server implements the
 Internet name server for UNIX systems.