LinuxSir.cn,穿越时空的Linuxsir!

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

【求助】域名解析的问题

[复制链接]
发表于 2005-4-5 01:41:18 | 显示全部楼层 |阅读模式
如果要让系统不使用/etc/hosts进行域名解析,而只通过DNS(bind)进行域名解析,需要修改哪个文件?
发表于 2005-4-5 02:57:26 | 显示全部楼层
/etc/host.conf
回复 支持 反对

使用道具 举报

发表于 2005-4-5 09:13:07 | 显示全部楼层
可以在/etc/named.conf下写入你要指定的文件即可!
回复 支持 反对

使用道具 举报

发表于 2005-4-5 11:53:46 | 显示全部楼层
/etc/host.conf
#
# /etc/host.conf - resolver configuration file
#
# Please read the manual page host.conf(5) for more information.
#
#
# The following option is only used by binaries linked against
# libc4 or libc5. This line should be in sync with the "hosts"
# option in /etc/nsswitch.conf.
#
order hosts, bind                  //去掉这里的hosts,重起network服务
# The following options are used by the resolver library:
#
multi on
回复 支持 反对

使用道具 举报

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

本版积分规则

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