Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 站务管理  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 当DNS出问题,访问本论坛的方法
阿熊



发贴: 0
积分: 0
于 2003-04-24 22:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请大家修改自己机器上的HOSTS文件,以便出现DNS无法解析的时候也
能顺利登录

1、Windows平台
在Win2000/WinXP中在“C:\WINNT\system32\drivers\etc”文件夹中创建“Hosts”文件
Win9x下是在C:\windows\hosts 文件, 如果没有, 将hosts.sam复制或改名为hosts文件, 然后再加入对应记录.

加入
#CJSDN
222.76.211.232 www.cjsdn.net

2、Linux平台
当机器启动时,在可以查询DNS以前,机器需要查询一些主机名到IP地址的匹配。这些匹配信息存放在/etc/hosts文件中。在没有域名服务器情况下,系统上的所有网络程序都通过查询该文件来解析对应于某个主机名的IP地址。

下面是一个“/etc/hosts”文件的示例:

IP Address   Hostname    Alias
127.0.0.1 localhost.localdomain localhost
222.76.211.232 www.cjsdn.net cjsdn
…………    …………      ………

最左边一列是主机IP信息,中间一列是主机名。任何后面的列都是该主机的别名。一旦配置完机器的网络配置文件,应该重新启动网络以使修改生效。使用下面的命令来重新启动网络:/etc/rc.d/init.d/network restart。

“/etc/host.conf”说明了如何解析地址。
order hosts,bind
设置首先通过hosts文件解析IP地址,然后通过DNS解析。

如果论坛IP更改,请即时更新。


阿熊 edited on 2009-09-08 21:29

作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
不戒和尚



发贴: 0
积分: 0
于 2003-04-30 11:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
>> Win9X在C:\WiNDOWS\HOSTS.SAM

这一句好像是错误的. 不信你改了试试.

应该是这样的, Win9x下是在C:\windows\hosts 文件, 如果没有, 将hosts.sam复制或改名为hosts文件, 然后再加入对应记录.



作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
menzy



版主


发贴: 754
积分: 113
于 2003-05-09 08:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
以前好像说不能用IP直接登录


作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
阿熊



发贴: 0
积分: 0
于 2003-05-09 08:29 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是在自己的机器上解析域名


作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
rox





发贴: 61
积分: 30
于 2003-06-02 00:51 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这个和早先的一个回避3712方法原理一样。
呵呵!



作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2004-03-26 09:50 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Still somehow fetched to the old ip, even after setting in the hosts and rebooting.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
fengliu212





发贴: 1
积分: 0
于 2004-04-18 08:35 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢 我又学了一点
ok




作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
zdh_free



发贴: 0
积分: 0
于 2004-05-23 21:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
晕,难道电信的dns解析不了吗。。。


作者 Re:当DNS出问题,访问本论坛的方法 [Re:zdh_free]
阿熊



发贴: 0
积分: 0
于 2004-05-24 07:49 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
zdh_free wrote:
晕,难道电信的dns解析不了吗。。。

电信的DNS偶尔会出问题



作者 Re:当DNS出问题,访问本论坛的方法 [Re:zua]
lxisp





发贴: 1
积分: 0
于 2004-12-21 11:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
是啊,我这dns老出问题



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923