Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1790979
  • 博文数量: 334
  • 博客积分: 11301
  • 博客等级: 上将
  • 技术积分: 3452
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-18 10:19
个人简介

路虽弥,不行不至;事虽少,不做不成。

文章分类

全部博文(334)

文章存档

2013年(4)

2012年(19)

2011年(27)

2010年(71)

2009年(45)

2008年(15)

2007年(84)

2006年(69)

分类: LINUX

2006-12-13 10:58:35

                         BIND & eMAIL (2006-12-9)
 
一.BIND(Berkeley Internet Name Domain)
   rpm -ivh bind
   /etc/named.conf
   /var/named/xxx.zone   (or   /var/named/chroot/var/named/xxx.zone)
   /etc/sysconfig/named  (chroot)
 
   e.g.1
The following example shows a very basic zone file.
$ORIGIN example.com.
$TTL 86400
@     IN     SOA    dns1.example.com.     hostmaster.example.com. (
                    2001062501 ; serial
                    21600      ; refresh after 6 hours
                    3600       ; retry after 1 hour
                    604800     ; expire after 1 week
                    86400 )    ; minimum TTL of 1 day

      IN     NS     dns1.example.com.
      IN     NS     dns2.example.com.

      IN     MX     10     mail.example.com.
      IN     MX     20     mail2.example.com.

             IN     A       10.0.1.5

server1      IN     A       10.0.1.5
server2      IN     A       10.0.1.7
dns1         IN     A       10.0.1.2
dns2         IN     A       10.0.1.3

ftp          IN     CNAME   server1
mail         IN     CNAME   server1
mail2        IN     CNAME   server2
www          IN     CNAME   server2
    e.g.2
 
Reverse Name Resolution Zone Files

In the follow example, IP addresses 10.0.1.20 through 10.0.1.25 are pointed to corresponding FQDNs.

$ORIGIN 1.0.10.in-addr.arpa.
$TTL 86400
@     IN     SOA    dns1.example.com.     hostmaster.example.com. (
                    2001062501 ; serial
                    21600      ; refresh after 6 hours
                    3600       ; retry after 1 hour
                    604800     ; expire after 1 week
                    86400 )    ; minimum TTL of 1 day

      IN     NS     dns1.example.com.
      IN     NS     dns2.example.com.

20    IN     PTR    alice.example.com.
21    IN     PTR    betty.example.com.
22    IN     PTR    charlie.example.com.
23    IN     PTR    doug.example.com.
24    IN     PTR    ernest.example.com.
25    IN     PTR    fanny.example.com.
 另:
 1. /var/named/chroot/var/named/ 目录的权限不对,注意枪检查一下
 2.allow-transfer 与 allow-query(这个应该也没什么关系,安全期间也可以看一下)
 
 
二.eMAIL
   MTA:
       --Mail Tranfer Agent
   MDA:
       --Mail Deliver Agent
   MUA:
       --Mail User Agent
 
                    MUA1--->MTA--->MDA--->MUAn
 
   SMTP:
        --25
        --command
           helo
           mail from
           rcpt to
           data
           quit
 
   POP3: (install the dovecot package,modified /etc/dovecot.conf
           protocol=imap pop3 imaps pop3s )
        --110
        --command
           user name
           pass passwd
           list
           rept
           dele
           quit
   IMAP:
        --143  
 
   /etc/mail/sendmail.cf
   /etc/mail/sendmail.mc  (dnl DAEMON_OPTIONS(....127.0.0.1...)
   /etc/mail/access
   /etc/mail/locao-host-names
   /etc/aliases           {root :student ---> newaliases/(sendmail -bi)}
  
  
   $ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
 
 
 
阅读(1224) | 评论(0) | 转发(0) |
0

上一篇:RHCE 实验

下一篇:Troubleshooting的小总结

给主人留下些什么吧!~~