LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 790|回复: 3

DNS解析---新问题

[复制链接]
发表于 2005-8-15 21:54:27 | 显示全部楼层 |阅读模式
我在其他机子上用nslookup 域名与ip都能解析。如ftp.yx.com  ---192.268.1.4
说明我的dns服务器没错。
但是在那台机子上用ping  ftp.yx.com  其对应的ip变成别的了!!ping  ftp.yx.com    65.61.146.199
结果导致在ie的URL输入域名机子任不到!!!
为什么??

请多关注!!!
发表于 2005-8-16 01:29:12 | 显示全部楼层
Post by clarke
我在其他机子上用nslookup 域名与ip都能解析。如ftp.yx.com  ---192.268.1.4
说明我的dns服务器没错。
但是在那台机子上用ping  ftp.yx.com  其对应的ip变成别的了!!ping  ftp.yx.com    65.61.146.199
结果导致在ie的URL输入域名机子任不到!!!
为什么??

请多关注!!!


ping search /etc/hosts first and then dns. check your hosts file first. Also, that 65. ip is a global address, you might sit on different network.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-16 19:42:13 | 显示全部楼层
I see  /etc/hosts :

192.168.1.1    clarke1.abc.com   clarke1

my pc and liunx pc locate in same  network  ,it is  255.255.255.0

now my win2000 profession /hosts
192.168.1.4    www.abc.com
192.168.1.5    ftp.yx.com

In accordance with setting, i can login www.abc.com
i do not the reason why  i must set this opition, because my dns is ok.

have you other way to resolve it?

thanks for your kind  atttentions!!!!
回复 支持 反对

使用道具 举报

发表于 2005-8-17 11:13:15 | 显示全部楼层
你的库装全了吗?看看这些你有没有:
/etc/nsswitch.conf
/lib/libnss_compat.so.X
/lib/libnss_db.so.X
/lib/libnss_dns.so.X
/lib/libnss_files.so.X
/lib/libnss_hesiod.so.X
/lib/libnss_nis.so.X
/lib/libnss_nisplus.so.2
其中X代表版本号
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表