Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10724408
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:25:21

êμ?éò?£o′??¨DNS·t???÷
 
ò??¢êμ?é??μ?£o
¢ù     °2×°bind èí?t°ü
¢ú     ???????t
¢?     ?a?????t
¢ü     ó?nslookup2aê?
 
 
?t?¢êμ?é?·?3£o
1.ó2?t?·?3
     ò?ì¨PC?ú?¢ò????í′??·óé?÷?¢ò???μ÷???aμ÷?÷
2.èí?t?·?3
 Red Hat Linux 2ù×÷?μí3
 
 
èy?¢êμ?é2??è£o
1. 2é?′bind èí?t°ü
# rpm ¨Cqa | grep bind                           2é?′bindèí?t°üê?·?ò??-×°o?
# service named start                           ???ˉDNS·t??
 
 
2. ??è??÷???????t£????y?ò?a??oí·′?ò?a????DD????
# vi /etc/named.conf
???????t??ê?£o
  zone ?°aaa.com?± IN {
        type master;
        file ?°aaa.com.dns?±;
  };
  zone ?°1.168.192.in-addr.arpa?± IN{
        type master;
        file ?°1.168.192.dns?±;
        allow-update {none;};
  };
 
 
3.?a?????t
# cd /var/named
# ls
# cp named.local aaa.com.dns     °?named.local?Dμ??úèY?′??μ?aaa.com.dns???t?D
# cp named.local 1.168.192.dns    °?named.local?Dμ??úèY?′??μ?1.168.192.dns???t?D
 
# vi aaa.com.dns                              ?y?ò?a??μ????????t??ê?
???????t??ê?£o
$ TTL   86400
@      IN      SOA         (
                            19970220700 ; Servial
                            28800       ; Refresh
                            14400       ; Retry
                            3600000     ; Expire
                            86400 )      ; Minimum
           IN        NS     
www       IN        A       192.168.1.150
 
# vi 1.168.192.dns                             ·′?ò?a??μ????????t??ê?
???????t??ê?£o
$ TTL   86400
@      IN      SOA         (
                            19970220700 ; Servial
                            28800       ; Refresh
                            14400       ; Retry
                            3600000     ; Expire
                            86400 )      ; Minimum
          IN        NS     
150       IN       PTR     
 
 
4.2aê?
    # service named reload                   ??D??ó??named
    # ping                      2aê?ê?·??üpingí¨óò??
  # nslookup               ó?nslookup2aê?ê?·??ü?à?¥?a??
 
 

±???3?×? ?°??ê???ì3?± 2??í£?D???×a??£?

阅读(1080) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~