你可把一些常用的主机加到这个项目内,如有一台 mail.cmlab.idv.tw ,假设 IP 为 61.219.230.8
则在这个 hosts 中加入以下
61.219.230.8 mail.cmlab.idv.tw mail 61.219.230.8 mail.cmlab.idv.tw.
这样就行了..
另外如果有自行架设 dns server,请注意在 /etc/host.conf 这个档案,典型的档案如下:
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis
有时你可以用 telnet 测试你的 Server 有无正常的 run 例如:我要查看 ftpd 有无在跑 可下指令:# telnet localhost 21 若跑出类似以下的讯息, 表示有在跑 -------------------------------- Trying 127.0.0.1... Connected to localhost.ahkun. Escape character is '^]'. 220-=(<*>; )=-.:. (( Welcome to PureFTPd 1.0.11 )) .:.-=(<*>; )=- 220-You are user number 1 of 50 allowed 220-Local time is now 18:52 and the load is 0.06. Server port: 21. 220 You will be disconnected after 15 minutes of inactivity.
若跑出以下的讯息, 表示没在跑 ------------------------------------------------ Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host