hosts.5: Clarify capability for IPv6 outside of examples

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>
This commit is contained in:
Thomas Bartelsmeier 2020-06-29 17:07:16 +02:00 committed by Michael Kerrisk
parent c5c0846dbe
commit 215c784ff4
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ line should be present with the following information:
IP_address canonical_hostname [aliases...] IP_address canonical_hostname [aliases...]
.RE .RE
.PP .PP
The IP address can conform to either IPv4 or IPv6.
Fields of the entry are separated by any number of blanks and/or Fields of the entry are separated by any number of blanks and/or
tab characters. tab characters.
Text from a "#" character until the end of the line is 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, Optional aliases provide for name changes, alternate spellings,
shorter hostnames, or generic hostnames (for example, shorter hostnames, or generic hostnames (for example,
.IR localhost ). .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 .PP
The Berkeley Internet Name Domain (BIND) Server implements the The Berkeley Internet Name Domain (BIND) Server implements the
Internet name server for UNIX systems. Internet name server for UNIX systems.