1999-08-28 00:37:10 +01:00
|
|
|
# $FreeBSD$
|
1993-06-20 14:41:45 +01:00
|
|
|
#
|
|
|
|
# Host Database
|
|
|
|
# This file should contain the addresses and aliases
|
|
|
|
# for local hosts that share this file.
|
1993-11-11 22:32:36 +00: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 19:16:48 +01:00
|
|
|
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
|
1993-06-20 14:41:45 +01:00
|
|
|
#
|
|
|
|
#
|
2000-02-15 14:59:16 +00:00
|
|
|
::1 localhost localhost.my.domain myname.my.domain
|
2000-08-15 10:38:19 +01:00
|
|
|
127.0.0.1 localhost localhost.my.domain myname.my.domain
|
1993-06-20 14:41:45 +01:00
|
|
|
#
|
|
|
|
# Imaginary network.
|
1994-06-04 03:03:45 +01:00
|
|
|
#10.0.0.2 myname.my.domain myname
|
|
|
|
#10.0.0.3 myfriend.my.domain myfriend
|
1993-11-11 22:32:36 +00:00
|
|
|
#
|
1996-03-20 15:29:10 +00:00
|
|
|
# According to RFC 1918, you can use the following IP networks for
|
1994-06-25 00:50:16 +01:00
|
|
|
# private nets which will never be connected to the Internet:
|
1994-06-04 03:03:45 +01:00
|
|
|
#
|
1995-04-09 10:54:51 +01:00
|
|
|
# 10.0.0.0 - 10.255.255.255
|
|
|
|
# 172.16.0.0 - 172.31.255.255
|
|
|
|
# 192.168.0.0 - 192.168.255.255
|
1994-06-04 03:03:45 +01:00
|
|
|
#
|
1994-06-25 00:50:16 +01:00
|
|
|
# In case you want to be able to connect to the Internet, you need
|
1994-06-04 03:03:45 +01:00
|
|
|
# real official assigned numbers. PLEASE PLEASE PLEASE do not try
|
1993-11-11 22:32:36 +00:00
|
|
|
# to invent your own network numbers but instead get one from your
|
|
|
|
# network provider (if any) or from the Internet Registry (ftp to
|
|
|
|
# rs.internic.net, directory `/templates').
|
|
|
|
#
|