Thread (1 message) 1 message, 1 author, 2015-03-22

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

From: Michael Kerrisk (man-pages) <hidden>
Date: 2015-03-22 18:55:35

On 03/12/2015 10:12 PM, Stéphane Aulery wrote:
Debian bug #562890 reported by Vincent Lefevre [off-list ref]
Applied. Thanks, Stéphane.

Cheers,

Michael

quoted hunk
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),

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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