[PATCH] hosts.5: mention 127.0.1.1 for FQDN and IPv6 examples

DORMANTno replies

From: Stéphane Aulery <hidden>
Date: 2015-03-12 21:12:25
Subsystem: the rest · Maintainer: Linus Torvalds

Debian bug #562890 reported by Vincent Lefevre [off-list ref]

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562890
Signed-off-by: Stéphane Aulery <redacted>
---
 man5/hosts.5 | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/man5/hosts.5 b/man5/hosts.5
index 9ec8cb2..2eaeb69 100644
--- a/man5/hosts.5
+++ b/man5/hosts.5
@@ -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),
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help