xref: /freebsd/lib/libc/net/hosts (revision 03452a498cd474fcc1edcaafa9cbb024fef2c479)
1*03452a49SBrad Davis# $FreeBSD$
2*03452a49SBrad Davis#
3*03452a49SBrad Davis# Host Database
4*03452a49SBrad Davis#
5*03452a49SBrad Davis# This file should contain the addresses and aliases for local hosts that
6*03452a49SBrad Davis# share this file.  Replace 'my.domain' below with the domainname of your
7*03452a49SBrad Davis# machine.
8*03452a49SBrad Davis#
9*03452a49SBrad Davis# In the presence of the domain name service or NIS, this file may
10*03452a49SBrad Davis# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
11*03452a49SBrad Davis#
12*03452a49SBrad Davis#
13*03452a49SBrad Davis::1			localhost localhost.my.domain
14*03452a49SBrad Davis127.0.0.1		localhost localhost.my.domain
15*03452a49SBrad Davis#
16*03452a49SBrad Davis# Imaginary network.
17*03452a49SBrad Davis#10.0.0.2		myname.my.domain myname
18*03452a49SBrad Davis#10.0.0.3		myfriend.my.domain myfriend
19*03452a49SBrad Davis#
20*03452a49SBrad Davis# According to RFC 1918, you can use the following IP networks for
21*03452a49SBrad Davis# private nets which will never be connected to the Internet:
22*03452a49SBrad Davis#
23*03452a49SBrad Davis#	10.0.0.0	-   10.255.255.255
24*03452a49SBrad Davis#	172.16.0.0	-   172.31.255.255
25*03452a49SBrad Davis#	192.168.0.0	-   192.168.255.255
26*03452a49SBrad Davis#
27*03452a49SBrad Davis# In case you want to be able to connect to the Internet, you need
28*03452a49SBrad Davis# real official assigned numbers.  Do not try to invent your own network
29*03452a49SBrad Davis# numbers but instead get one from your network provider (if any) or
30*03452a49SBrad Davis# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
31*03452a49SBrad Davis#
32