LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 614|回复: 0

怎么在我们学校的代理server上配DNS HOST WWW.KDY.MIL不通!

[复制链接]
发表于 2005-5-19 10:22:04 | 显示全部楼层 |阅读模式
/etc/named.conf如下:
// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};


include "/etc/rndc.key";
zone "kdy.mil" IN {
        type master;
        file "kdy.mil.hosts";
        allow-update { none; };
};



/var/named/kdy.mil.hosts如下:
$ttl 38400
kdy.mil.        IN      SOA     proxy3. foxbobby.kdy.mil. (
                        1112062102
                        10800
                        3600
                        604800
                        38400 )
kdy.mil.        IN      NS      proxy3.
www.kdy.mil.    IN      A       24.85.144.1.
kdy.mil.        IN      MX      5 proxy3.kdy.mil
~
~
~
vi /etc/resolv.conf如下:
nameserver      211.92.184.130
nameserver      24.85.144.1
search proxy3
~
请大家帮忙看看!

[root@proxy3 root]# service named restart
停止 named:                                               [  确定  ]
启动 named:                                               [  确定  ]
[root@proxy3 root]# host www.kdy.mil
Host www.kdy.mil not found: 3(NXDOMAIN)
[root@proxy3 root]#




~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表