小编Jak*_*ikp的帖子

为什么我的 resolv.conf 文件每次都会重新生成?

我的/etc/resolv.conf文件每次都会重新生成,这让我在重新连接 3G 调制解调器时失去了 Google DNS 服务器。

为了更改 DNS 设置,我查看了http://code.google.com/intl/fr-FR/speed/public-dns/docs/using.html

dhclient.conf的非常大(58 行),所以我把它贴在了pastebin 上

但是,这里是整个dhclient.conf没有注释行或空行:

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name "<hostname>";
request subnet-mask, broadcast-address, time-offset, routers,
    domain-name, domain-name-servers, domain-search, host-name,
    netbios-name-servers, netbios-scope, interface-mtu,
    rfc3442-classless-static-routes, ntp-servers;
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
Run Code Online (Sandbox Code Playgroud)

我正在使用wvdial而不是网络管理器。

dns resolv.conf

17
推荐指数
3
解决办法
2万
查看次数

标签 统计

dns ×1

resolv.conf ×1