日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

二 Linux簡(jiǎn)明系統(tǒng)維護(hù)手冊(cè)( 二 )


;;$TTL 3600@IN SOAcompaq.rd.xxx.com. tandongyu.rd.xxx.com. (20020101;Serial3600;Refresh900;Retry 15 mins604800;Expire 7 days86400);Mini 24 hours;NameServer (NS) records@INNScompaq.rd.xxx.com.;Address Point to Name (PTR) records9INPTRcompaq.rd.xxx.com.8INPTRtls65.rd.xxx.com.7INPTRfbsd.rd.xxx.com.15、在/var/named/中生成/etc/named.conf中標(biāo)記的文件:127.0.0.db,內(nèi)容如下,你需要修改相應(yīng)部分:
; 0.0.127.in-addr.arpa$TTL 3600@INSOAcompaq.rd.xxx.com. tandongyu.rd.xxx.com. ( 20020101;serial 3600;refresh 1800;retry 604800;expiration 3600 );minimumINNScompaq.rd.xxx.com.1INPTRlocalhost.16、在/var/named/中生成/etc/named.conf中標(biāo)記的文件:named.root,內(nèi)容大致如下 。該文件標(biāo)記了14個(gè)域名服務(wù)器 ??梢詮膄tp.rs.internic.net獲得該文件的最新樣本:named.hosts,然后改名成你需要的名字,比如:named.root
;This file holds the information on root name servers needed to;initialize cache of Internet domain name servers;(e.g. reference this file in the "cache.";configuration file of BIND domain name servers).;;This file is made available by InterNIC registration services;under anonymous FTP as;file/domain/named.root;on server FTP.RS.INTERNIC.NET;-OR- under Gopher atRS.INTERNIC.NET; under menuInterNIC Registration Services (NSI);submenuInterNIC Registration Archives; filenamed.root;;last update:Aug 22, 1997;related version of root zone:1997082200;;; formerly NS.INTERNIC.NET;.3600000INNSA.ROOT-SERVERS.NET.A.ROOT-SERVERS.NET.3600000A198.41.0.4;; formerly NS1.ISI.EDU;.3600000NSB.ROOT-SERVERS.NET.B.ROOT-SERVERS.NET.3600000A128.9.0.107;; formerly C.PSI.NET;.3600000NSC.ROOT-SERVERS.NET.C.ROOT-SERVERS.NET.3600000A192.33.4.12;; formerly TERP.UMD.EDU;.3600000NSD.ROOT-SERVERS.NET.D.ROOT-SERVERS.NET.3600000A128.8.10.90;; formerly NS.NASA.GOV;.3600000NSE.ROOT-SERVERS.NET.E.ROOT-SERVERS.NET.3600000A192.203.230.10;; formerly NS.ISC.ORG;.3600000NSF.ROOT-SERVERS.NET.F.ROOT-SERVERS.NET.3600000A192.5.5.241;; formerly NS.NIC.DDN.MIL;.3600000NSG.ROOT-SERVERS.NET.G.ROOT-SERVERS.NET.3600000A192.112.36.4;; formerly AOS.ARL.ARMY.MIL;.3600000NSH.ROOT-SERVERS.NET.H.ROOT-SERVERS.NET.3600000A128.63.2.53;; formerly NIC.NORDU.NET;.3600000NSI.ROOT-SERVERS.NET.I.ROOT-SERVERS.NET.3600000A192.36.148.17;; temporarily housed at NSI (InterNIC);.3600000NSJ.ROOT-SERVERS.NET.J.ROOT-SERVERS.NET.3600000A198.41.0.10;; housed in LINX, operated by RIPE NCC;.3600000NSK.ROOT-SERVERS.NET.K.ROOT-SERVERS.NET.3600000A193.0.14.129 ;; temporarily housed at ISI (IANA);.3600000NSL.ROOT-SERVERS.NET.L.ROOT-SERVERS.NET.3600000A198.32.64.12;; housed in Japan, operated by WIDE;.3600000NSM.ROOT-SERVERS.NET.M.ROOT-SERVERS.NET.3600000A202.12.27.33; End of File17、我們還需要配置/etc/resolv.conf、/etc/hosts、/etc/hosts.conf文件以適應(yīng)新的狀況 。
18、一切都結(jié)束后,用/usr/sbin/ndc start命令啟動(dòng)bind,同樣的可用stop、restart、reload等命令參數(shù)操作 。
19、啟動(dòng)后用nslookup命令(有的系統(tǒng)推薦使用dig命令)檢驗(yàn)是否正確 。如果出現(xiàn)錯(cuò)誤,該命令將不能啟動(dòng) 。一般的錯(cuò)誤都是數(shù)據(jù)庫(kù)文件或配置文件筆誤所至 。比如少個(gè)“.”或者文件明不正確等等 。
(2) 安裝sendmail服務(wù)器
1、從www.sendmail.org下載最新的版本(這個(gè)snedmail倒是有必要升級(jí)為最新的版本,因?yàn)樗纳?jí)主要是安全漏洞問題) 。這里說明的是用的sendmail-8.12.2.tar.gz
2、cd /usr/local/src/
3、把文件下載到:/usr/local/src中
4、tar zxvf sendmail-8.12.2.tar.gz
5、cd /usr/local/src/sendmail-8.12.2
6、chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
7、chown root / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue
8、cd /usr/local/src/sendmail-8.12.2/sendmail
9、sh Build
10、cd /usr/local/src/sendmail-8.12.2/cf/cf
11、建立文件sendmail.mc內(nèi)容如下,你可根據(jù)需要修改相應(yīng)部分 。
divert(-1)dnl This is the macro config file used to generate the /etc/sendmail.cfdnl file. If you modify thei file you will have to regenerate thednl /etc/sendmail.cf by running this macro config through the m4dnl preprocessor:dnl m4 /etc/sendmail.mc > /etc/sendmail.cfdnl You will need to have the Sendmail-cf pacage installed for this to work.include(`/usr/local/src/sendmail-8.12.2/cf")define(`confDEF_USER_ID",`8:12")OSTYPE(`linux")undefine(`UUCP_RELAY")undefine(`BITNET_RELAY")define(`confTO_CONNECT", `1m")define(`confTRY_NULL_MX_LIST",true)define(`confDONT_PROBE_INTERFACES",true)define(`PROCMAIL_MAILER_PATH",`/usr/bin/procmail")define(`SMART_HOST",compaq.rd.xxx.com)

推薦閱讀