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