]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man5/hosts.5
libc.7: Add a note on why glibc 2.x uses the soname libc.so.6
[thirdparty/man-pages.git] / man5 / hosts.5
index aca5a43c05fde2d8f030a78df22d3d39fc0d0dac..ceb45b7a5b896c2c73ca7c4c11fb0058a4af4861 100644 (file)
@@ -24,7 +24,7 @@
 .\" Minor polishing, aeb
 .\" Modified, 2002-06-16, Mike Coleman
 .\"
-.TH HOSTS 5 2002-06-16 "Linux" "Linux Programmer's Manual"
+.TH HOSTS 5 2016-10-08 "Linux" "Linux Programmer's Manual"
 .SH NAME
 hosts \- static table lookup for hostnames
 .SH SYNOPSIS
@@ -106,15 +106,26 @@ 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),
 .BR resolver (3),
+.BR host.conf (5),
+.BR resolv.conf (5),
 .BR resolver (5),
 .BR hostname (7),
 .BR named (8)