|
|
发表于 2006-4-5 21:49:50
|
显示全部楼层
/etc/conf.d/hostname
# /etc/conf.d/hostname
# Set to the hostname of this machine
HOSTNAME="tux"
/etc/conf.d/domainname# /etc/conf.d/domainname
# When setting up resolv.conf, what should take precedence?
# 0 = let dhcp/whatever override DNSDOMAIN
# 1 = override dhcp/whatever with DNSDOMAIN
OVERRIDE=1
# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# (domain entry in /etc/resolv.conf and FQDN in /etc/hosts).
#
# DNSDOMAIN merely sets the domain entry in /etc/resolv.conf, see
# the resolv.conf(5) manpage for more info.
DNSDOMAIN="homenetwork"
# For information on setting up NIS, please see:
# http://www.linux-nis.org/nis-howto/HOWTO/
NISDOMAIN=""
/etc/hosts# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1 localhost
192.168.1.2 tux.homenetwork tux |
|