免费注册 查看新帖 |

Chinaunix

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

[故障求助] hosts问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-10 14:30 |只看该作者 |倒序浏览
IP地址能ping通,但是ping主机名无响应?有人遇到过么?
192.168.2.3    test

ping 192.168.2.3   OK
ping test  失败,显示域名,但是没有配置域名服务


谢谢!

[ 本帖最后由 jat_15 于 2008-10-20 10:11 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-10-10 14:54 |只看该作者
host test
没问题吗?

论坛徽章:
0
3 [报告]
发表于 2008-10-10 14:57 |只看该作者
原帖由 tianyue01 于 2008-10-10 14:54 发表
host test
没问题吗?

test-root:/>host test
test.domain is 202.106.199.35

我不知道这个202.106.199.35 哪里来的,应该是192.168.2.3的才对

论坛徽章:
0
4 [报告]
发表于 2008-10-10 15:11 |只看该作者
cat /etc/resolv.conf

论坛徽章:
0
5 [报告]
发表于 2008-10-10 15:25 |只看该作者
原帖由 tianyue01 于 2008-10-10 15:11 发表
cat /etc/resolv.conf
没用的,我都试过了,现在机器重启了以后所有的服务都停掉了,显示主机命不对

论坛徽章:
0
6 [报告]
发表于 2008-10-10 16:05 |只看该作者

教你一绝招

在/etc/hosts文件找到192.168.2.3这一行

添加test到这一行的行尾,用空格隔开


192.168.2.3  test

就这样就行了

论坛徽章:
0
7 [报告]
发表于 2008-10-10 16:15 |只看该作者
原帖由 arken woo 于 2008-10-10 16:05 发表
在/etc/hosts文件找到192.168.2.3这一行

添加test到这一行的行尾,用空格隔开


192.168.2.3  test

就这样就行了

这个是必须的,还是不行,谢谢了!
refresh -g tcpip
0513-095 The request for subsystem refresh was completed successfully.
0513-036 The request could not be passed to the rwhod subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the xntpd subsystem.
Start the subsystem and try your command again.
0513-095 The request for subsystem refresh was completed successfully.
0513-095 The request for subsystem refresh was completed successfully.
0513-095 The request for subsystem refresh was completed successfully.
0513-095 The request for subsystem refresh was completed successfully.
0513-036 The request could not be passed to the dpid2 subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpcd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpcd6 subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the ndpd-host subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the ndpd-router subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the tftpd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the gated subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the named subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the routed subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the iptrace subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the timed subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpsd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpsdv6 subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcprd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the mrouted subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the pxed subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the binld subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dfpd subsystem.
Start the subsystem and try your command again.
0513-095 The request for subsystem refresh was completed successfully.

[ 本帖最后由 jat_15 于 2008-10-10 16:17 编辑 ]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-02-18 06:20:00
8 [报告]
发表于 2008-10-14 16:58 |只看该作者

你 dns 优先哪个?

确定一下

论坛徽章:
0
9 [报告]
发表于 2008-10-15 13:23 |只看该作者
我记得以前别人说过,轻易不要refresh -g tcpip

论坛徽章:
0
10 [报告]
发表于 2008-10-15 13:25 |只看该作者
看看/etc/netsvc.conf
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP