配置DNS辅助域名服务器和子域名服务器
2007-12-02 16:30:35 来源:WEB开发网核心提示:3.子域market.myzone.org的反向解析文件/var/named/192.168.10.zone$TTL 1D@ 1DINSOA myzone.org. root.mail.myzone.org. ( 20070301 1H 15M 1W 1D ) INNSns.myzone.org.6 INPTR ns.
3.子域market.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.myzone.org.
100 IN PTR mail.myzone.org.
注:辅助域的解析文件将会由区域传送获得,不需要手动建立。如果你想要反复尝试区域传送的效果,请将TTL值改小。本机的如下所示:
4.域mydomain.org的正向解析文件/var/named/mydomain.org.zone
$ORIGIN .
$TTL 86400 ; 1 day
mydomain.org IN SOA mydomain.org. root.mail.mydomain.org. (
20070301 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns.mydomain.org.
A 192.168.1.7
MX 10 mail.mydomain.org.
$ORIGIN mydomain.org.
ftp CNAME mail
mail A 192.168.1.100
ns A 192.168.1.7
www CNAME mail
5.域mydomain.org的反向解析文件/var/named/192.168.1.zone
$ORIGIN .
$TTL 86400 ; 1 day
1.168.192.in-addr.arpa IN SOA mydomain.org. root.mail.mydomain.org. (
20070301 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns.mydomain.org.
$ORIGIN 1.168.192.in-addr.arpa.
100 PTR mail.mydomain.org.
7 PTR marion.org.
PTR ns.mydomain.org.
四:测试结果
1.主机A:
#nslookup
> set type=NS
> market.myzone.org
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
market.myzone.org nameserver = ns.market.myzone.org.
Authoritative answers can be found from:
ns.market.myzone.org internet address = 192.168.10.6
> myzone.org
Server: 127.0.0.1
Address: 127.0.0.1#53
myzone.org nameserver = ns.myzone.org.
> mydomain.org
Server: 127.0.0.1
Address: 127.0.0.1#53
mydomain.org nameserver = ns.mydomain.org.
>
2.主机B:
#nslookup
> set type=NS
> mydomain.org
Server: 127.0.0.1
Address: 127.0.0.1#53
mydomain.org nameserver = ns.mydomain.org.
> myzone.org
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
myzone.org nameserver = ns.myzone.org.
Authoritative answers can be found from:
ns.myzone.org internet address = 192.168.10.7
> market.myzone.org
Server: 127.0.0.1
Address: 127.0.0.1#53
market.myzone.org nameserver = ns.market.myzone.org.
- ››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服务器之二
更多精彩
赞助商链接