配置DNS辅助域名服务器和子域名服务器
2007-12-02 16:30:35 来源:WEB开发网核心提示:4.域myzone.org的正向解析文件/var/named/myzone.org.zone# more /var/named/myzone.org.zone$TTL 1D$ORIGIN myzone.org.@ 1DINSOA myzone.org. root.mail.myzone.org. ( 20070301
4.域myzone.org的正向解析文件/var/named/myzone.org.zone
# more /var/named/myzone.org.zone
$TTL 1D
$ORIGIN myzone.org.
@ 1D IN SOA myzone.org. root.mail.myzone.org. (
20070301
1H
15M
1W
1D )
IN NS ns.myzone.org.
IN MX 10 mail.myzone.org.
myzone.org. IN A 192.168.10.7
ns IN A 192.168.10.7
mail IN A 192.168.10.5
www IN CNAME mail
ftp IN CNAME mail
market IN NS ns.market #指明授权的子域market
ns.market IN A 192.168.10.6
$ORIGIN develop.myzone.org. #指明授权的子域develop,和上一种方法稍有不同.
IN NS ns.develop.myzone.org.
ns IN A 192.168.10.2
5.域myzone.org的反向解析文件/var/named/192.168.10.zone
$TTL 1D
@ 1D IN SOA myzone.org. root.mail.myzone.org. (
20070301
1H
15M
1W
1D )
IN NS ns.myzone.org.
6 IN PTR ns.market.myzone.org
2 IN PTR ns.develop.myzone.org
7 IN PTR ns.myzone.org.
5 IN PTR mail.myzone.org.
7 IN PTR myzone.org.
三、主机B:
1.named主配置文件/etc/named.conf
options {
directory "/var/named/";
version "unknown";
forwarders { 192.168.1.7; };
};
logging {
channel dns_errors
{ file "/var/log/named/err_logs" versions 3 size 10m;
severity error;
print-category yes;
print-severity yes;
print-time yes;
};
channel dns_queries
{ file "/var/log/named/query_logs" versions 3 size 10m;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default { dns_errors; };
category queries { dns_queries; };
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "named.local";
};
zone "0.0.127.IN-addr.arpa" {
type master;
file "named.rev";
};
zone "mydomain.org" {
type slave;
file "mydomain.org.zone";
masters { 192.168.1.7; };
};
zone "1.168.192.in-addr.arpa" {
type slave;
file "192.168.1.zone";
masters { 192.168.1.7; };
};
zone "market.myzone.org" {
type master;
file "market.myzone.org.zone";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "192.168.10.zone";
};
key "rndc-key" {
algorithm hmac-md5;
secret "NiBZCqWP0IsvMPuZpUKdog==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
2.子域market.myzone.org的正向解析文件/var/named/market.myzone.org.zone
$TTL 1D
$ORIGIN market.myzone.org.
@ 1D IN SOA market.myzone.org. root.mail.market.myzone.org. (
20070301
1H
15M
1W
1D )
IN NS ns.market.myzone.org.
IN MX 10 mail.market.myzone.org.
market.myzone.org. IN A 192.168.10.6
ns IN A 192.168.10.6
mail IN A 192.168.10.100
www IN CNAME mail
- ››DNS中的正向解析与反向解析
- ››配置MySQL出错The service could not be started....
- ››配置apache虚拟主机
- ››配置远程客户机使用命名管道协议访问SQL服务器
- ››配置SQL Server2005以允许远程访问
- ››配置ISA Server以创建站点到站点VPN 连接之一
- ››配置ISA Server以创建站点到站点VPN 连接之二
- ››配置ISA Server以创建站点到站点VPN 连接之三 启用...
- ››配置VPN服务器中的L2TP/IPSEC:ISA2006系列之二十...
- ››配置单网卡的ISA缓存服务器:ISA2006系列之二十七...
- ››配置Win2008作为远程访问SSL-VPN服务器之一
- ››配置Win2008作为远程访问SSL-VPN服务器之二
更多精彩
赞助商链接