xref: /freebsd-src/lib/libc/net/hosts (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
103452a49SBrad Davis#
203452a49SBrad Davis# Host Database
303452a49SBrad Davis#
403452a49SBrad Davis# This file should contain the addresses and aliases for local hosts that
503452a49SBrad Davis# share this file.  Replace 'my.domain' below with the domainname of your
603452a49SBrad Davis# machine.
703452a49SBrad Davis#
803452a49SBrad Davis# In the presence of the domain name service or NIS, this file may
903452a49SBrad Davis# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
1003452a49SBrad Davis#
1103452a49SBrad Davis#
1203452a49SBrad Davis::1			localhost localhost.my.domain
1303452a49SBrad Davis127.0.0.1		localhost localhost.my.domain
1403452a49SBrad Davis#
1503452a49SBrad Davis# Imaginary network.
1603452a49SBrad Davis#10.0.0.2		myname.my.domain myname
1703452a49SBrad Davis#10.0.0.3		myfriend.my.domain myfriend
1803452a49SBrad Davis#
19*455e0b9bSPedro F. Giffuni# According to RFC 1918, you can use the following IP blocks for
20*455e0b9bSPedro F. Giffuni# private internets:
2103452a49SBrad Davis#
22*455e0b9bSPedro F. Giffuni#	10.0.0.0	-   10.255.255.255	(10/8 prefix)
23*455e0b9bSPedro F. Giffuni#	172.16.0.0	-   172.31.255.255	(172.16/12 prefix)
24*455e0b9bSPedro F. Giffuni#	192.168.0.0	-   192.168.255.255	(192.168/16 prefix)
2503452a49SBrad Davis#
26*455e0b9bSPedro F. Giffuni# In case you want to make addresses available on the Internet, you need
2703452a49SBrad Davis# real official assigned numbers.  Do not try to invent your own network
2803452a49SBrad Davis# numbers but instead get one from your network provider (if any) or
2903452a49SBrad Davis# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
3003452a49SBrad Davis#
31