]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
hosts.5: Mention 127.0.1.1 for FQDN and IPv6 examples
authorStéphane Aulery <saulery@free.fr>
Thu, 12 Mar 2015 21:12:25 +0000 (22:12 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 22 Mar 2015 19:20:58 +0000 (20:20 +0100)
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562890

Reported-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Stéphane Aulery <saulery@free.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/hosts.5

index 9ec8cb269a28cc98070087d71f0899e5445ac0d8..2eaeb69a98250f94e5e1894b1ef1a1a899436f7e 100644 (file)
@@ -106,11 +106,20 @@ I just found three, from 92,
 94, and 95.
 .SH EXAMPLE
 .nf
+# The following lines are desirable for IPv4 capable hosts
 127.0.0.1       localhost
+
+# 127.0.1.1 is often used for the FQDN of the machine
+127.0.1.1       thishost.mydomain.org  thishost
 192.168.1.10    foo.mydomain.org       foo
 192.168.1.13    bar.mydomain.org       bar
 146.82.138.7    master.debian.org      master
 209.237.226.90  www.opensource.org
+
+# The following lines are desirable for IPv6 capable hosts
+::1             localhost ip6-localhost ip6-loopback
+ff02::1         ip6-allnodes
+ff02::2         ip6-allrouters
 .fi
 .SH SEE ALSO
 .BR hostname (1),