请问:如何在/etc/hosts中动态写入自己的FQDN

由 enjoy 在 04-05-2004 12:07 发表:

请问:如何在/etc/hosts中动态写入自己的FQDN

If a user is not going to use a network card, he still needs to come up with a FQDN. This is necessary for programs like Sendmail to operate correctly (in fact; Sendmail won't run when it can't determine the FQDN).

我用sendmail发信时,对方要比较我的fqdn解析后是否与我的IP一样。

但是我是用VPN上网,用pptp连接后才给分配一个像h209253.resnet.cuhk.edu.hk这样的FQDN,我把我的connect文件放在/etc/initd.d/下。

我想问怎样查看自己的FQDN,如何才能把每次分配的FQDN写入/etc/hosts阿?

谢谢!


由 enjoy 在 04-05-2004 13:11 发表:

<p

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus