注: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
阅读(8394) | 评论(0) | 转发(0) |