;;$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中标记的文件:127.0.0.db,内容如下,你需要修改相应部分:
; 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中标记的文件:named.root,内容大致如下 。该文件标记了14个域名服务器 。可以从ftp.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文件以适应新的状况 。
18、一切都结束后,用/usr/sbin/ndc start命令启动bind,同样的可用stop、restart、reload等命令参数操作 。
19、启动后用nslookup命令(有的系统推荐使用dig命令)检验是否正确 。如果出现错误,该命令将不能启动 。一般的错误都是数据库文件或配置文件笔误所至 。比如少个“.”或者文件明不正确等等 。
(2) 安装sendmail服务器
1、从www.sendmail.org下载最新的版本(这个snedmail倒是有必要升级为最新的版本,因为它的升级主要是安全漏洞问题) 。这里说明的是用的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内容如下,你可根据需要修改相应部分 。
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)
推荐阅读
- Linux环境下发现并阻止系统攻击
- linux内核的编译
- 三 Linux简明系统维护手册
- 四 Linux简明系统维护手册
- Linux远程启动
- 在Linux中制作VCD
- 寻找Linux下的网络邻居
- Linux 每次启动时钟日期就多了 8 小时
- 实例讲解 LILO 的配置和使用
- 在没有CD-ROM 驱动器的笔记本电脑上安装Linux
