hosts.5
来自「minix操作系统最新版本(3.1.1)的源代码」· 5 代码 · 共 58 行
5
58 行
.TH HOSTS 5.SH NAMEhosts \- hostname to IP address database.SH SYNOPSIS.B /etc/hosts.SH DESCRIPTIONThe hosts database lists the IP addresses and the hostnames that translateto these IP addresses. It is used by.BR nonamed (8)in a network without name servers. A simple.B /etc/hostsmay look like this:.PP.RS.ta +15n.nf10.0.0.1 flotsam10.0.0.2 jetsam.fi.RE.PPThese two entries give names to two IP addresses. The file may containcomments marked with '#'..PPYou can have aliases (more hostnames on the same line) to give a machinemore than one name, like.BR www ,if you run a web server on one..PPIf your PC is Internet connected then you can specify the name server(s)to get more information from with %nameserver entries:.PP.RS.ta +\w'172.16.24.3'u+4m +\w'%nameserver'u+4m.nf172.16.24.3 %nameserver # dns1.example.com172.16.24.6 %nameserver # dns2.example.com.fi.RE.PPRead.BR nonamed (8)for all the details on special host file entries that configure.B nonamedfor use on the Internet, and on home machines that are occasionallyconnected to the Internet..SH FILES.TP 15n/etc/hostsHosts database..SH "SEE ALSO".BR ethers (5),.BR nonamed (8),.BR dhcpd (8),.BR boot (8)..SH AUTHORKees J. Bot (kjb@cs.vu.nl)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?