1993-06-20 09:41:45 -04:00
|
|
|
#
|
|
|
|
|
# Host Database
|
2001-12-11 17:36:10 -05:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
#
|
1993-11-11 17:32:36 -05:00
|
|
|
# In the presence of the domain name service or NIS, this file may
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 14:16:48 -04:00
|
|
|
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
|
1993-06-20 09:41:45 -04:00
|
|
|
#
|
|
|
|
|
#
|
2001-09-29 08:20:08 -04:00
|
|
|
::1 localhost localhost.my.domain
|
|
|
|
|
127.0.0.1 localhost localhost.my.domain
|
1993-06-20 09:41:45 -04:00
|
|
|
#
|
|
|
|
|
# Imaginary network.
|
1994-06-03 22:03:45 -04:00
|
|
|
#10.0.0.2 myname.my.domain myname
|
|
|
|
|
#10.0.0.3 myfriend.my.domain myfriend
|
1993-11-11 17:32:36 -05:00
|
|
|
#
|
2022-02-27 23:07:34 -05:00
|
|
|
# According to RFC 1918, you can use the following IP blocks for
|
|
|
|
|
# private internets:
|
1994-06-03 22:03:45 -04:00
|
|
|
#
|
2022-02-27 23:07:34 -05:00
|
|
|
# 10.0.0.0 - 10.255.255.255 (10/8 prefix)
|
|
|
|
|
# 172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
|
|
|
|
|
# 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
|
1994-06-03 22:03:45 -04:00
|
|
|
#
|
2022-02-27 23:07:34 -05:00
|
|
|
# In case you want to make addresses available on the Internet, you need
|
2001-12-11 17:36:10 -05:00
|
|
|
# real official assigned numbers. Do not try to invent your own network
|
2003-01-28 16:29:23 -05:00
|
|
|
# numbers but instead get one from your network provider (if any) or
|
|
|
|
|
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
|
1993-11-11 17:32:36 -05:00
|
|
|
#
|