我生成的 resolv.conf 的内容来自哪里?

我生成的 resolv.conf 的内容来自哪里?

我有一个已安装的 Ubuntu 14.10 服务器resolvconf

在 中/etc/resolvconf/resolv.conf.d/base,我有:

nameserver 127.0.0.1

在 中/etc/resolvconf/resolv.conf.d/head,我有:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

在 中/etc/resolvconf/resolv.conf.d/original,我有:

domain members.linode.com
search members.linode.com
nameserver 207.192.69.4
nameserver 207.192.69.5
nameserver 97.107.133.4
options rotate

我的/etc/resolvconf/resolv.conf.d/tail符号链接到/etc/resolvconf/resolv.conf.d/original

为什么我的resolv.conf生成是这样的?

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 74.207.242.5
nameserver 74.207.241.5
nameserver 127.0.0.1
search members.linode.com
domain members.linode.com
search members.linode.com
nameserver 207.192.69.4
nameserver 207.192.69.5
nameserver 97.107.133.4
options rotate

前 2 行和第四行出自哪里?据我了解,resolvconf应该只使用来自headbase和`tail 的信息。

这是我的/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

相关内容