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