免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-09 17:46 |只看该作者 |倒序浏览
安装了1台solaris10
/etc/resolv.conf
/etc/nsswitch.conf
/etc/nsswitch.dns

都正确配置了,就是ping 域名不能解析,nslookup 域名可以解析,奇怪了,请问板主怎么解决?急!!!

论坛徽章:
0
2 [报告]
发表于 2008-07-11 08:47 |只看该作者
还是没配置对

论坛徽章:
0
3 [报告]
发表于 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
4 [报告]
发表于 2008-07-11 09:21 |只看该作者
ping所有的域名都无法解析?

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
5 [报告]
发表于 2008-07-11 09:25 |只看该作者
不会吧,是什么个情况,,是不是反回
#ping bbs.chinaunix.net
bbs.chinaunix.net is alive


[ 本帖最后由 badb0y 于 2008-7-11 14:47 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2008-07-11 09:47 |只看该作者
楼上的,I服了U了。

论坛徽章:
0
7 [报告]
发表于 2008-07-11 12:02 |只看该作者
配置发过来看下

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

回复 #7 ljhappy 的帖子

bash-3.00# cat /etc/resolv.conf
nameserver 202.106.0.20

bash-3.00# cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.

passwd:     files
group:      files

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup.  See resolv.conf(4).
hosts:      files dns

# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes:   files dns

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
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

tnrhtp:     files
tnrhdb:     files

bash-3.00# cat /etc/nsswitch.dns  
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.

passwd:     files
group:      files

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup.  See resolv.conf(4).
hosts:      files dns

# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes:   files dns

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
printers:       user files

auth_attr:  files
prof_attr:  files
project:    files

tnrhtp:     files
tnrhdb:     files


运行了:svcadm enable svc:/network/dns/client还是不行

bash-3.00# nslookup news.163.com
Server:         202.106.0.20
Address:        202.106.0.20#53

Non-authoritative answer:
news.163.com    canonical name = news-biz.cache.split.netease.com.
news-biz.cache.split.netease.com        canonical name = biz.163.com.
Name:   biz.163.com
Address: 202.108.9.79


bash-3.00# ping news.163.com   没有响应

论坛徽章:
0
9 [报告]
发表于 2008-07-11 21:16 |只看该作者
没有响应。。。如果是不能解析 是不是应该提示 无效主机名?

你ping个无效域名 看看提示

我觉得nslookup能出来,一切都ok了。。。也许是网络某道关卡不蓝ping

论坛徽章:
0
10 [报告]
发表于 2008-07-11 21:59 |只看该作者
ping -s baidu.com 都可以解析的,是不是你们内网有防火墙啊!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP