Update the /etc/hosts example in the handbook to match reality.
PR: 124949 Discussed with: brueffer
This commit is contained in:
parent
12df008bb1
commit
588a5826a0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32613
1 changed files with 16 additions and 14 deletions
|
@ -1540,33 +1540,35 @@ nameserver 147.11.100.30</programlisting>
|
|||
|
||||
<programlisting># $&os;$
|
||||
#
|
||||
#
|
||||
# Host Database
|
||||
# This file should contain the addresses and aliases
|
||||
# for local hosts that share this file.
|
||||
#
|
||||
# This file should contain the addresses and aliases for local hosts that
|
||||
# share this file. Replace 'my.domain' below with the domainname of your
|
||||
# machine.
|
||||
#
|
||||
# In the presence of the domain name service or NIS, this file may
|
||||
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
|
||||
#
|
||||
#
|
||||
::1 localhost localhost.my.domain myname.my.domain
|
||||
127.0.0.1 localhost localhost.my.domain myname.my.domain
|
||||
|
||||
::1 localhost localhost.my.domain
|
||||
127.0.0.1 localhost localhost.my.domain
|
||||
#
|
||||
# Imaginary network.
|
||||
#10.0.0.2 myname.my.domain myname
|
||||
#10.0.0.3 myfriend.my.domain myfriend
|
||||
#10.0.0.2 myname.my.domain myname
|
||||
#10.0.0.3 myfriend.my.domain myfriend
|
||||
#
|
||||
# According to RFC 1918, you can use the following IP networks for
|
||||
# private nets which will never be connected to the Internet:
|
||||
#
|
||||
# 10.0.0.0 - 10.255.255.255
|
||||
# 172.16.0.0 - 172.31.255.255
|
||||
# 192.168.0.0 - 192.168.255.255
|
||||
# 10.0.0.0 - 10.255.255.255
|
||||
# 172.16.0.0 - 172.31.255.255
|
||||
# 192.168.0.0 - 192.168.255.255
|
||||
#
|
||||
# In case you want to be able to connect to the Internet, you need
|
||||
# real official assigned numbers. PLEASE PLEASE PLEASE do not try
|
||||
# to invent your own network numbers but instead get one from your
|
||||
# network provider (if any) or from the Internet Registry (ftp to
|
||||
# rs.internic.net, directory `/templates').
|
||||
# real official assigned numbers. Do not try to invent your own network
|
||||
# numbers but instead get one from your network provider (if any) or
|
||||
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
|
||||
#</programlisting>
|
||||
|
||||
<para><filename>/etc/hosts</filename> takes on the simple format
|
||||
|
|
Loading…
Reference in a new issue