转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> MySql >> 正文
Linux简明系统维护手册         ★★★★

Linux简明系统维护手册

作者:闵涛 文章来源:闵涛的学习笔记 点击数:5380 更新时间:2009/4/22 20:45:58
uery-source address * port *;   /* * The "forward" option is only meaningful if you''''ve defined * forwarders. "first" gives the normal BIND * forwarding behavior, i.e. ask the forwarders first, and if that * doesn''''t work then do the full lookup. You can also say * "forward only;" which is what used to be specified with * "slave" or "options forward-only". "only" will never attempt    * a full lookup; only the forwarders will be used.    */ forward first; forwarders { };     // default is no forwarders topology { localhost; localnets; };     // prefer local nameservers listen-on port 53 { any; };     // listen for queries on port 53 on    // any interface on the system    // (i.e. all interfaces). The    // "port 53" is optional; if you    // don''''t specify a port, port 53    // is assumed. /* * Interval Timers */ cleaning-interval 60;     // clean the cache of expired RRs    // every ''''cleaning-interval'''' minutes interface-interval 60;     // scan for new or deleted interfaces    // every ''''interface-interval'''' minutes statistics-interval 60;     // log statistics every    // ''''statistics-interval'''' minutes maintain-ixfr-base no;     // If yes, keep transaction log file for IXFR max-ixfr-log-size 20;     // Not implemented, maximum size the    // IXFR transaction log file to grow   };   /*    * Control listeners, for "ndc". Every nameserver needs at least one.    */   controls { inet * port 52 allow { any; }; // a bad idea unix "/var/run/ndc" perm 0600 owner 0 group 0;        // the default   };   zone "rd.xxx.com" in { type master;       // what used to be called "primary" file "rd.xxx.com.db"; check-names fail; allow-update { none; }; allow-transfer { any; }; allow-query { any; }; // notify yes;       // send NOTIFY messages for this // zone? The global option is used // if "notify" is not specified // here. also-notify { };       // don''''t notify any nameservers other // than those on the NS list for this // zone   };   zone "223.99.211.in-addr.arpa" in { type master; // what used to be called "secondary" file "21.9.22.db"; };   zone "0.0.127.in-addr.arpa" in { type master; file "127.0.0.db";   };   zone "." in { type hint;        // used to be specified w/ "cache" file "named.root";   };   logging { /* * All log output goes to one or more "channels"; you can make as * many of them as you want. */ channel syslog_errors {       // this channel will send errors or syslog user;       // or worse to syslog (user facility) severity error; }; category parser { syslog_errors; // you can log to as many channels default_syslog;      // as you want }; category lame-servers { null; };      // don''''t log these at all channel moderate_debug { severity debug 3;      // level 3 debugging to file file "foo";      // foo print-time yes;     // timestamp log entries print-category yes;      // print category name print-severity yes;      // print severity level /* * Note that debugging must have been turned on either * on the command line or with a signal to get debugging * output (non-debugging output will still be written to * this channel). */ }; /* * If you don''''t want to see "zone XXXX loaded" messages but do * want to see any problems, you could do the following. */ channel no_info_messages { syslog; severity notice; }; category load { no_info_messages; }; /* * You can also define category "default"; it gets used when no * "category" statement has been given for a category. */ category default { default_syslog; moderate_debug; }; };

  13、在/var/named/中生成/etc/named.conf中标记的文件:rd.xxx.com.db,内容如下,需要修改和调整相应部分:


  ;Authoriative data for rd.xxx.com
  ;
  $TTL 3600
  @  IN  SOA  compaq.rd.xxx.com. tandongyu.rd.xxx.com. (
    20020101        ;Serial
    3600            ;Refresh 1 hour
    900             ;Retry 15 mins
    604800          ;Expire 7 days
    86400)          ;Mini 24 hours
  ;Name server NS records
  @  IN    NS      compaq.rd.xxx.com.
  ;Mail Exchange (MX) records
  rd.xxx.com.   IN  MX      0       compaq
  ;Address (A) records.
  localhost       IN      A       127.0.0.1
  compaq          IN      A       21.9.22.9
  tls65           IN      A       21.9.22.8
  fbsd            IN      A       21.9.22.7

  14、在/var/named/中生成/etc/named.conf中标记的文件:21.9.22.db,内容如下,你需要修改相应部分:


  ;
  ;
  $TTL 3600
  @  IN SOA  compaq.rd.xxx.com.         tandongyu.rd.xxx.com. (
    20020101        ;Serial
    3600            ;Refresh
    900             ;Retry 15 mins
    604800          ;Expire 7 days
    86400)          ;Mini 24 hours
  ;NameServer (NS) records
  @       IN      NS      compaq.rd.xxx.com.
  ;Address Point to Name (PTR) records
  9       IN      PTR     compaq.rd.xxx.com.
  8       IN      PTR     tls65.rd.xxx.com.
  7       IN      PTR     fbsd.rd.xxx.com.

  15、在/var/named/中生成/etc/named.conf中标记的文件:127.0.0.db,内容如下,你需要修改相应部分:


  ; 0.0.127.in-addr.arpa
  $TTL 3600
  @    IN   SOA     compaq.rd.xxx.com. tandongyu.rd.xxx.com. (
     20020101;serial
         3600    ;refresh
         1800    ;retry
         604800  ;expiration
         3600 )  ;minimum
    IN     NS      compaq.rd.xxx.com.
  1        IN     PTR     localhost.

  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 at    RS.INTERNIC.NET
  ;           under menu          InterNIC Registration Services (NSI)
  ;              submenu          InterNIC Registration Archives
  ;           file                named.root
  ;
  ;       last update:    Aug 22, 1997
  ;       related version of root zone:   1997082200
  ;
  ;
  ; formerly NS.INTERNIC.NET
  ;
    .                        3600000  IN  NS    A.ROOT-SERVERS.NET.
    A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
  ;
  ; formerly NS1.ISI.EDU
  ;
    .                        3600000      NS    B.ROOT-SERVERS.NET.
    B.ROOT-SERVERS.NET.      3600000      A     128.9.0.107
  ;
  ; formerly C.PSI.NET
  ;
    .                        3600000      NS    C.ROOT-SERVERS.NET.
    C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
  ;
  ; formerly TERP.UMD.EDU
  ;
    .                        3600000      NS    D.ROOT-SERVERS.NET.
    D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
  ;
  ; formerly NS.NASA.GOV
  ;
    .                        3600000      NS    E.ROOT-SERVERS.NET.
    E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
  ;
  ; formerly NS.ISC.ORG
  ;
    .                        3600000      NS    F.ROOT-SERVERS.NET.
    F.ROOT-SERVERS.NET.      3600000      A     192.5.5.241
  ;
  ; formerly NS.NIC.DDN.MIL
  ;
    .                        3600000      NS    G.ROOT-SERVERS.NET.
    G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
  ;
  ; formerly AOS.ARL.ARMY.MIL
  ;
    .                        3600000      NS    H.ROOT-SERVERS.NET.
    H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
  ;
  ; formerly NIC.NORDU.NET
  ;
    .                        3600000      NS    I.ROOT-SERVERS.NET.
    I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17
  ;
  ; temporarily housed at NSI (InterNIC)
  ;
    .                        3600000      NS    J.ROOT-SERVERS.NET.
    J.ROOT-SERVERS.NET.      3600000      A     198.41.0.10
  ;
  ; housed in LINX, operated by RIPE NCC
  ;
    .                        3600000      NS    K.ROOT-SERVERS.NET.
    K.ROOT-SERVERS.NET.      3600000      A     193.0.14.129 
  ;
  ; temporarily housed at ISI (IANA)
  ;
    .                        3600000      NS    L.ROOT-SERVERS.NET.
    L.ROOT-SERVERS.NET.      3600000      A     198.32.64.12
  ;
  ; housed in Japan, operated by WIDE
  ;
    .                        3600000      NS    M.ROOT-SERVERS.NET.
    M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
  ; End of File

  17、我们还需要配置/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 /

上一页  [1] [2] [3] [4] [5] [6] [7]  下一页


没有相关教程
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台