免费注册 查看新帖 |

Chinaunix

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

solaris10 ping 域名不能解析? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-09 17:46 |只看该作者 |倒序浏览
安装了1台solaris10 \r\n/etc/resolv.conf\r\n/etc/nsswitch.conf\r\n/etc/nsswitch.dns\r\n\r\n都正确配置了,就是ping 域名不能解析,nslookup 域名可以解析,奇怪了,请问板主怎么解决?急!!!

论坛徽章:
0
2 [报告]
发表于 2008-07-11 09:04 |只看该作者
svcadm enable network/dns client

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
3 [报告]
发表于 2008-07-11 09:21 |只看该作者
ping所有的域名都无法解析?

论坛徽章:
0
4 [报告]
发表于 2008-07-11 16:13 |只看该作者

回复 #7 ljhappy 的帖子

bash-3.00# cat /etc/resolv.conf \r\nnameserver 202.106.0.20\r\n\r\nbash-3.00# cat /etc/nsswitch.conf \r\n#\r\n# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.\r\n# Use is subject to license terms.\r\n#\r\n\r\n#\r\n# /etc/nsswitch.dns:\r\n#\r\n# An example file that could be copied over to /etc/nsswitch.conf; it uses\r\n# DNS for hosts lookups, otherwise it does not use any other naming service.\r\n#\r\n# \"hosts:\" and \"services:\" in this file are used only if the\r\n# /etc/netconfig file has a \"-\" for nametoaddr_libs of \"inet\" transports.\r\n\r\n# DNS service expects that an instance of svc:/network/dns/client be\r\n# enabled and online.\r\n\r\npasswd:     files\r\ngroup:      files\r\n\r\n# You must also set up the /etc/resolv.conf file for DNS name\r\n# server lookup.  See resolv.conf(4).\r\nhosts:      files dns\r\n\r\n# Note that IPv4 addresses are searched for in all of the ipnodes databases\r\n# before searching the hosts databases.\r\nipnodes:   files dns\r\n\r\nnetworks:   files\r\nprotocols:  files\r\nrpc:        files\r\nethers:     files\r\nnetmasks:   files\r\nbootparams: files\r\npublickey:  files\r\n# At present there isn\'t a \'files\' backend for netgroup;  the system will \r\n#   figure it out pretty quickly, and won\'t use netgroups at all.\r\nnetgroup:   files\r\nautomount:  files\r\naliases:    files\r\nservices:   files\r\nprinters:       user files\r\n\r\nauth_attr:  files\r\nprof_attr:  files\r\nproject:    files\r\n\r\ntnrhtp:     files\r\ntnrhdb:     files\r\n\r\nbash-3.00# cat /etc/nsswitch.dns  \r\n#\r\n# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.\r\n# Use is subject to license terms.\r\n#\r\n\r\n#\r\n# /etc/nsswitch.dns:\r\n#\r\n# An example file that could be copied over to /etc/nsswitch.conf; it uses\r\n# DNS for hosts lookups, otherwise it does not use any other naming service.\r\n#\r\n# \"hosts:\" and \"services:\" in this file are used only if the\r\n# /etc/netconfig file has a \"-\" for nametoaddr_libs of \"inet\" transports.\r\n\r\n# DNS service expects that an instance of svc:/network/dns/client be\r\n# enabled and online.\r\n\r\npasswd:     files\r\ngroup:      files\r\n\r\n# You must also set up the /etc/resolv.conf file for DNS name\r\n# server lookup.  See resolv.conf(4).\r\nhosts:      files dns\r\n\r\n# Note that IPv4 addresses are searched for in all of the ipnodes databases\r\n# before searching the hosts databases.\r\nipnodes:   files dns\r\n\r\nnetworks:   files\r\nprotocols:  files\r\nrpc:        files\r\nethers:     files\r\nnetmasks:   files\r\nbootparams: files\r\npublickey:  files\r\n# At present there isn\'t a \'files\' backend for netgroup;  the system will \r\n#   figure it out pretty quickly, and won\'t use netgroups at all.\r\nnetgroup:   files\r\nautomount:  files\r\naliases:    files\r\nservices:   files\r\nprinters:       user files\r\n\r\nauth_attr:  files\r\nprof_attr:  files\r\nproject:    files\r\n\r\ntnrhtp:     files\r\ntnrhdb:     files\r\n\r\n\r\n运行了:svcadm enable svc:/network/dns/client还是不行\r\n\r\nbash-3.00# nslookup news.163.com\r\nServer:         202.106.0.20\r\nAddress:        202.106.0.20#53\r\n\r\nNon-authoritative answer:\r\nnews.163.com    canonical name = news-biz.cache.split.netease.com.\r\nnews-biz.cache.split.netease.com        canonical name = biz.163.com.\r\nName:   biz.163.com\r\nAddress: 202.108.9.79\r\n\r\n\r\nbash-3.00# ping news.163.com   没有响应

论坛徽章:
0
5 [报告]
发表于 2008-07-11 21:16 |只看该作者
没有响应。。。如果是不能解析 是不是应该提示 无效主机名?\r\n\r\n你ping个无效域名 看看提示\r\n\r\n我觉得nslookup能出来,一切都ok了。。。也许是网络某道关卡不蓝ping

论坛徽章:
0
6 [报告]
发表于 2008-07-11 21:59 |只看该作者
ping -s baidu.com 都可以解析的,是不是你们内网有防火墙啊!!!

论坛徽章:
0
7 [报告]
发表于 2008-07-15 14:32 |只看该作者

回复 #10 haishui 的帖子

没有防火墙,用linux系统就正常

论坛徽章:
0
8 [报告]
发表于 2008-07-17 14:55 |只看该作者

回复 #1 paub 的帖子

终于知道什么原因了,原来是本机器到所ping的域名不通,造成的。

论坛徽章:
0
9 [报告]
发表于 2008-07-19 12:39 |只看该作者
这个答案也太。。。难道LZ前面没在其他机器上测试一下?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP