/etc/resolv.conf是由/etc/network/interfaces的内容动态生成的,在我的系统中,该内容包含如下一行:
dns-servers 8.8.8.8如何使用此配置包括默认搜索域?如果这很重要,我正在运行一个纯Ubuntu配置,没有安装任何X服务器。
发布于 2012-08-07 00:08:14
由于您似乎在使用解析器,所以您需要在网络接口文件中使用dns-search选项。
#/etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 10.2.37.4
netmask 255.255.254.0
gateway 10.2.37.1
dns-nameservers 10.2.51.4 10.2.52.4
dns-search example.orghttps://serverfault.com/questions/414879
复制相似问题