Linux /etc/resolv.conf DNS服务器IP地址修改被覆盖问题

为了临时修改DNS服务器IP地址,可能会选择手动修改 /etc/resolv.conf 文件,而在重启Network Manager服务后(sudo systemctl restart NetworkManager),resolv.conf 文件又会被替换成Network Manager配置的DNS服务器IP。

https://www.ibm.com/support/pages/etcresolvconf-file-gets-replaced-every-boot-due-rhel-network-manager-how-can-we-stop-it-and-it-going-effect-powervc-functionality
/etc/resolv.conf file gets replaced at every boot due to RHEL Network Manager. How can we stop it and is it going to effect PowerVC functionality?
Troubleshooting

Problem
/etc/resolv.conf file gets replaced at every boot due to RHEL Network Manager.
Resolving The Problem
1.Can you change the network manager to not do that or to disable it? 

Yes

2. Is network manager requires for PowerVC to work?

No

3. Is it going to effect PowerVC?

No

 To make sure that Network Manager will no longer modify your DNS configuration, you could simply stop using it and revert to the original networking manager.  To make changes to the active, running system, only effective from now until next reboot:

 

systemctl stop NetworkManager

systemctl start network

​

To make the changes permanent, effective at the next reboot and all future reboots, issue the following commands: 

systemctl disable NetworkManager

systemctl enable network
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值