|
发表于 2005-7-28 00:56:56
|
显示全部楼层
不同的发行版,这些文件可能有些不同。我在gentoo看到与网络配置相关的几个文件如下:
host.conf
# /etc/host.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/2.3.4/host.conf,v 1.2 2004/11/24 05:31:58 vapier Exp$
# The file /etc/host.conf contains configuration information specific to
# the resolver library. It should contain one configuration keyword per
# line, followed by appropriate configuration information. The keywords
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.
# This keyword specifies how host lookups are to be performed. It
# should be followed by one or more lookup methods, separated by
# commas. Valid methods are bind, hosts, and nis.
#
order hosts, bind
# Valid values are on and off. If set to on, the resolv+ library treats
# the .local top level domain as link-local domain and sends multicast
# DNS requests to the multicast address 224.0.0.251 port 5353 instead
# of normal DNS requests. If you already use the .local domain in your
# nameserver configuration you will have to switch this option off.
#
mdns off
# Valid values are on and off. If set to on, the resolv+ library
# will return all valid addresses for a host that appears in the
# /etc/hosts file, instead of only the first. This is off by
# default, as it may cause a substantial performance loss at sites
# with large hosts files.
#
multi off
/etc/hosts
#IP domain names
127.0.0.1 bing bing Bing localhost.localdomain localhost
192.168.36.182 bing Bing localhost.localdomain
networks
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/networks,v 1.4 2002/11/18 19:39:22 azarah Exp $
#
# networks This file describes a number of netname-to-adress
# mappings for the TCP/IP subsytem. It is mostly
# used at boot time, when no name servers are running.
loopback 127.0.0.0
# End.
resolv.conf
nameserver 202.116.64.2
nameserver 202.116.64.3
domain Localdomain |
|