HOSTS.5
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH HOSTS 5
- .SH NAME
- hosts - hostname to IP address database
- .SH SYNOPSIS
- .B /etc/hosts
- .SH DESCRIPTION
- The hosts database lists the IP addresses and the hostnames that translate
- to these IP addresses. It is used by
- .BR nonamed (8)
- in a network without name servers. A simple
- .B /etc/hosts
- may look like this:
- .PP
- .RS
- .ta +15n +10n
- .nf
- 127.0.0.1 localhost
- 192.9.200.1 darask
- 192.9.200.2 burask
- .fi
- .RE
- .PP
- The localhost entry lists a special address that refers to the local host
- itself (a kind of /dev/tty for hosts.) You should only list it if
- .B nonamed
- needs it! The other entries are actual machines. The file may contain
- comments marked with '#'.
- .PP
- You can have aliases (more hostnames on the same line), but it is not
- recommended, because
- .B nonamed
- can't present them to the system as CNAME records. An often seen form like
- .PP
- .RS
- 192.9.200.1 darask.home.cs.vu.nl darask
- .RE
- .PP
- is harmless though, and has the small advantage that you can use the short
- name in
- .B /etc/ethers
- so
- .B rarpd
- can match it at boot time.
- .SH FILES
- .TP 15n
- /etc/hosts
- Hosts database.
- .SH "SEE ALSO"
- .BR ethers (5),
- .BR nonamed (8),
- .BR rarpd (8),
- .BR boot (8).
- .SH AUTHOR
- Kees J. Bot (kjb@cs.vu.nl)