你可把一些常用的主機(jī)加到這個(gè)項(xiàng)目內(nèi),如有一臺(tái) mail.cmlab.idv.tw ,假設(shè) IP 為 61.219.230.8
則在這個(gè) hosts 中加入以下
61.219.230.8 mail.cmlab.idv.tw mail 61.219.230.8 mail.cmlab.idv.tw.
這樣就行了..
另外如果有自行架設(shè) dns server,請(qǐng)注意在 /etc/host.conf 這個(gè)檔案,典型的檔案如下:
# $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
有時(shí)你可以用 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