Translated message

A translation of this page exists in English.

如何对 /etc/resolv.conf 进行持久更改

已更新 -

你可以在 /etc/sysconfig/network-scripts/ifcfg-eth

<N> 文件中 加入 PEERDNS 选项。<N>

可以是 0, 1, 2 等等,代表不同网卡的配置文件。例如,系统上第一张网卡是eth0的话,那它的配置文件就是 /etc/sysconfig/network-scripts/ifcfg-eth0 。
然后在文件中把 PEERDNS 改为 'no'. 例如:

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content