Chinaunix首页 | 论坛 | 博客
  • 博客访问: 348258
  • 博文数量: 54
  • 博客积分: 497
  • 博客等级: 下士
  • 技术积分: 612
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-16 20:05
个人简介

行动…Don\'t ever let somebody tell you, you can\'t do something. you got a dream, you gotta protect it. people can\'t do something themselves they wanna tell you you can\'t do it.if you want something. go get it.

文章分类

全部博文(54)

文章存档

2021年(3)

2018年(1)

2017年(18)

2016年(7)

2015年(4)

2013年(1)

2011年(20)

我的朋友

分类: LINUX

2011-08-12 14:18:57

注:linuxman初步稿,稍后整理(会把安装步骤写清楚)。
DNS安装成功后在/var/named/chroot/etc/named.rfc*.zone添加如下内容:

zone "linuxman.cc" IN {
        type master;
        file "linuxman.zone";
        allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
        type master;
        file "linuxman.arpa";
        allow-update { none; };
};
 
(注:以下为多域名指向同一IP,若是多域名,以此类推)
zone "cn.domain.com" IN {
        type master;
        file "cn.domain.com";
        allow-update { none; };
};
zone "upload.domain.com" IN {
        type master;
        file "upload.domain.com";
        allow-update { none; };
};
zone "sns.domain.com" IN {
        type master;
        file "sns.lansin.com";
        allow-update { none; };
};
然后在: /var/named/chroot/var/named/下创建 linuxman.zone & linuxman.arpa
 
vi linuxman.zone (注:正向解析)
$TTL    86400
@               IN SOA  ufinity.cc  root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
                IN NS           dns
localhost       IN A            127.0.0.1
                IN NS           .
. IN A            192.168.1.22
 
vi linuxman.arpa  (注:反向解析)
$TTL    86400
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS      localhost.
1       IN      PTR     localhost.
        IN      NS      dns.
1       IN      PTR     dns.
        IN      NS      linuxman.cc.
22      IN      PTR     .
 

添加多域名正向解析:
vi   cn.domain.com
$TTL    86400
@               IN SOA  localhost root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A            127.0.0.1
                IN NS           mail.cn.linuxman.com.
mail.cn.linuxman.com. IN A       192.168.1.4
cn.linuxman.com. IN MX 10        mail.cn.linuxman.com.  (注:此处为MAIL交换记录)
 
 
 
vi upload.domain.com
$TTL    86400
@               IN SOA  localhost root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A            127.0.0.1
                IN NS           upload.domain.com.
upload.domain.com.      IN A            192.168.1.4
 
vi sns.domain.com
 
$TTL    86400
@               IN SOA  localhost root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A            127.0.0.1
                IN NS           sns.domain.com.
sns.domain.com.      IN A            192.168.1.4
阅读(8384) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~