免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1282 | 回复: 6
打印 上一主题 下一主题

求SUN工作站5.8网络配置DNS [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-08 09:50 |只看该作者 |倒序浏览
求SUN工作站5.8网络配置DNS

论坛徽章:
0
2 [报告]
发表于 2004-04-08 10:07 |只看该作者

求SUN工作站5.8网络配置DNS

cp /etc/nsswitch.dns /etc/nsswitch.conf
vi /etc/nsswitch.conf
试着改吧

论坛徽章:
0
3 [报告]
发表于 2004-04-08 10:11 |只看该作者

求SUN工作站5.8网络配置DNS

能不能说详细一点。

论坛徽章:
0
4 [报告]
发表于 2004-04-08 11:45 |只看该作者

求SUN工作站5.8网络配置DNS

新建 /etc/named.comf
配置相应的zone

论坛徽章:
0
5 [报告]
发表于 2004-04-08 12:05 |只看该作者

求SUN工作站5.8网络配置DNS

以下为我配置的named.conf范例
//
// BIND Version 9 configuration file.
//

options {
        directory "/var/named";
        dump-file "/var/named/tmp/named_dump.db";
        version "test";   
// *        只在指定网络端口启动 DNS 服务
//        listen-on{127.0.0.1;192.168.0.5;};
// *        只允许指定的主机使用本机的DNS服务( master/slave 主/从 服务器一定要允许相互通信的)
//        allow-transfer {192.168.0.5;192.168.0.10;};
        forward only;
        forwarders {
                211.167.97.67;
                202.102.24.35;
                211.141.90.68;
        };
        transfers-in 10;
        transfers-per-ns 2;
};

// *        禁止指定的网段使用本机的DNS服务( master/slave 主/从 服务器相互通信 不能禁止)
acl hatenets {
        10.0.0.0/8;
        172.16.0.0/12;
};
// * 生成系统日志       
logging {
        channel syslog_info {
                file  "/var/log/bindall.log" versions 20 size 2m;
                print-category yes;
                print-time yes;
                Severity notice;
                };
        category default {
                syslog_info;
                };
};


//× 内部网提供完全的解析
view "internal" {
        // This should match our internal networks.
        match-clients { 192.168.0.0/16; 127.0.0.0/8;};
        // Provide recursive service to internal clients only.
        recursion yes;

        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; };
        };

        zone "test.com" IN {
                type master;
                file "test.com.internal";
                allow-update { none; };
        };
        zone  "0.168.192.in-addr.arpa" IN {
                type master;
                file "named.0.168.192";
                allow-update  { none; };
        };

};
       

//× 外部网只提供本地域的解析
view "external" {  
        match-clients { any; };
        // Refuse recursive service to external clients.
        recursion no;
        // Provide a restricted view of the mydomain.com zone
        // containing only publicly accessible hosts.
        zone "test.com" IN {
                type master;
                file "test.com.external";
                allow-update { none; };
        };

};

论坛徽章:
0
6 [报告]
发表于 2004-04-08 12:41 |只看该作者

求SUN工作站5.8网络配置DNS

用这个命令,重新配置你的计算机。
sys-unifconfig
可以输入DNS
这是没办法的办法了

论坛徽章:
0
7 [报告]
发表于 2004-04-09 06:07 |只看该作者

求SUN工作站5.8网络配置DNS

谢谢各位老大的解答。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP