双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

[DNS] 帮帮忙啊

weixin_38049129 weixin_38049129 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

各位大虾:
   
    小弟准备配一个dns服务器,在局域网中使用,机器配置是 solaris 8 dns 服务器用solaris 8自带的bind,可是配好之后 在用nslookup测试的时候,总是出现如下错误:
Can't find server name for address 172.16.200.211: Server failed
Default servers are not available
请问是何原因阿?

我的各个文件配置如下:
/etc/hosts:
    127.0.0.1       localhost
    172.16.200.211  netwlab
/etc/resolv.conf
    nameserver 172.16.200.211
/etc/named.conf
    option {
    directory "/var/named";
    pid-file "named.pid";

    zone "."  IN {
    type hint;
    file "named.ca";
    };


    zone "ce-air.com" IN {
    type master;
    file "ip2name.zone";
    notify no;

    };
    zone "0.0.127.in-addr.arpa" {
    type master;
    file "localhost.rev";
    notify no;
    };
/var/named/ip2name.zone
    $TTL 86400
    @ IN SOA netwlab.xxx.com. root.netwlab.xxx.com. {
                      991226009
                      10800
                     3600
                      3600000
                      3600 }
                @      IN NS          netwlab.xxx.com
                @      IN MX    10      mail.xxx.com
                 localhost IN A 127.0.0.1
                 netwlab   IN A 172.16.200.211
                 mail      IN A 172.16.2.15
/var/named/localhost.rev
    $TTL 3600
    @ IN SOA netwlab.xxx.com. root.netwlab.xxx.com.{
     1;
     3600;
     900;
     3600000;
     3600;
     };
     IN NS     netwlab.xxx.com.
     IN A      127.0.0.1
     1 IN PTR   localhost.

请各位大虾不吝赐教
...全文
评论 9
收藏 已收藏
分享
返回顶部