LinuxSir.cn,穿越时空的Linuxsir!

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

网络断开的时候(DNS不可达), 如何得到(设置) hostname?

[复制链接]
发表于 2009-2-22 20:48:10 | 显示全部楼层 |阅读模式
这是emacs devel maillist 给我的答复.
> Does Emacs attempt to connect network when startup?

Emacs tries to determine the hostname of the machine on which it runs.
So if your DNS setup specifies a server that's not reachable, you'll get such timeouts

我在 /etc/resolv.conf 中指定了 nameserver, 这样在网络断开的时候. 启动emacs, 它并不会意识到网络已经断开了. 还傻傻的用我指定的DNS去 get hostname. 这样emacs就会启动不了了.

$ cat /etc/conf.d/hostname
$ hostname="lambda"

是不是网络设置出了问题.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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