免费注册 查看新帖 |

Chinaunix

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

哪位老大知道sun的dns怎么配置的?紧急!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-08 22:02 |只看该作者 |倒序浏览
我在配置dns时修改了以下两个文件:
在/etc目录下编辑两个文件:
nsswitch.conf
内容如下:
/etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:      files       dns
ipnodes:    files
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
sendmailvars:   files
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

resolv.conf内容如下:

domain vivatel.bg
nameserver 10.96.208.200

在用nslookkup命令时不能正常解析:
*** Can't find server name for address 10.96.208.200: Server failed
*** Default servers are not available

论坛徽章:
0
2 [报告]
发表于 2006-05-08 22:32 |只看该作者
我的dns配置是这样的,在nsswitch.conf里的network后面也加上dns,还有在etc下新建一个gateways文件,里面写
host 202.206.64.33 gateway 202.206.77.4 metric 1 passive
其中前面的是dns,后面的是网关
由于我也是个新手,只能说这么多,你看看有没有什么帮助

论坛徽章:
0
3 [报告]
发表于 2006-05-08 22:33 |只看该作者
你确信10.96.208.200是正常的吗?

论坛徽章:
0
4 [报告]
发表于 2006-05-08 23:20 |只看该作者

我设的地址是正常的,可以在小型机上面ping通

我设的地址是正常的,可以在小型机上面ping通,也按照pmss这位兄弟说的作了还是不行啊

[ 本帖最后由 云飞扬1980 于 2006-5-8 23:23 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2006-05-09 00:10 |只看该作者
defaultrouter文件你建了吗?

论坛徽章:
0
6 [报告]
发表于 2006-05-09 00:32 |只看该作者
If you have another Unix/Linux machine that works fine,
check these files:
resolv.conf
defaultrouter
netmasks
hosts

It is strange that you have a DNS server with an internal IP.

论坛徽章:
0
7 [报告]
发表于 2006-05-10 01:11 |只看该作者
原帖由 pmss 于 2006-5-8 22:32 发表
我的dns配置是这样的,在nsswitch.conf里的network后面也加上dns,还有在etc下新建一个gateways文件,里面写
host 202.206.64.33 gateway 202.206.77.4 metric 1 passive
其中前面的是dns,后面的是网关
由于我 ...

solaris 不支持这个gateway的写法,写到defaultrouter里
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP