NOVOTS KMS 词汇表 Glossary    联系我们 Contact Us
查询 Search  
   
按类别浏览 Browse by Category
NOVOTS KMS .: 操作系统 .: Microsoft Windows Server .: DNS配置

DNS配置

DNS 域名服务器安装包:
bind bind-chroot caching-nameserver 
启动服务
service named restart端口53配置文件:/var/named/chroot/etc/named.caching-nameserver.conf( 访问控制)/var/named/chroot/etc/named.rfc1912.zones( 定义域名)/var/named/chroot/var/named/ (域名解析)
正向解析
1.vim /etc/named.caching-nameserver.conflisten-on port 53 { any; };allow-query { any; };allow-query-cache { any; };match-clients { any; };match-destinations { any; };
2.vim /etc/named.rfc1912.zones

zone "uplooking.com" IN { type master; file "uplooking.com.zone"; 
}; 
3.touch /var/named/chroot/var/named/uplooking.com.zone chown :named /var/named/chroot/var/named/uplooking.com.zone chmod 640 /var/named/chroot/var/named/uplooking.com.zone 
$TTL 86400  
@  IN SOA  dns.uplooking.com.  root ( 20120903 3H 15M 1W 1D )  
IN NS  dns.uplooking.com.  
dns  IN A  192.168.119.254  
www  IN A  192.168.119.254  
ftp  IN A  192.168.119.254  

IN MX 5 mail.uplooking.com.mail IN A 192.168.119.254
(邮件交换记录) 
www IN A 192.168.119.254 www IN A 192.168.119.253 www IN A 192.168.119.252 
(负载均衡)
$GENERATE 1-254 stu$ IN A 192.168.119.$ web.uplooking.com. IN CNAME www.uplooking.com. (别名)
4. 指定dns vim /etc/resolv.conf nameserver 192.168.119.254 
5.service named restart 
测试
host www.uplooking.com nslookup www.uplooking.com 
反向解析
1.vim /etc/named.rfc1912.zones 
zone "119.168.192.in-addr.arpa" IN { 
type master; 
file "up.com.zone"; }; 
2.touch /var/named/chroot/var/named/up.com.zone 
chown :named /var/named/chroot/var/named/up.com.zone 
chmod 640 /var/named/chroot/var/named/up.com.zone 
$TTL 86400@ IN SOA dns.up.com. root ( 123345 3H 15M 1W 1D )
IN NS dns.up.com. 254 IN PTR dns.up.com. 254 IN PTR www.up.com. 
主从服务器主
1.vim /etc/named.rfc1912.zones 
zone "youku.com" IN { 
type master; 
file "youku.com.zone"; 
allow-transfer { 192.168.119.222; }; }; 
2.vim youku.com.zone $TTL 86400 
@  IN SOA  dns.youku.com.  root ( 20120903 3H 15M 1W 1D )  
IN NS dns1.youku.com.  
IN NS dns2.youku.com.  
dns1  IN A  192.168.119.254  
dns2  IN A  192.168.119.222  
www  IN A  192.168.119.254  

1. 安装包2.vim /etc/named.caching-nameserver.conflisten-on port 53 { any; };allow-query { any; };allow-query-cache { any; };match-clients { any; };match-destinations { any; };3.vim /etc/named.rfc1912.zones
zone "youku.com" IN { type slave; file "slaves/youku.com.zone"; masters { 192.168.119.254; }; 
}; 
4. 重启服务service named restart 5.ls /var/named/chroot/var/named/slaves/ youku.com.zone 


这篇文章对你多有用?

相关文章

article Linux下DNS配置
        ...

(No rating)  5-23-2012    Views: 805   

用户评语

添加评语
当前还没有评语.


.: .: .: .: .:
[ 登陆 ]
北京护航科技有限公司 2006

Novots Technologies Limited