Got it

Disable the automatic DNS configuration function of the NIC

Created: May 18, 2022 07:44:50Latest reply: May 18, 2022 08:01:33 168 3 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello, friend!

I want to disable the automatic DNS configuration function of the NIC on ECS, and I want the configuration to be permanent. Can you help me?

Thanks!


  • x
  • convention:

Featured Answers
olive.zhao
Admin Created May 18, 2022 08:01:33

Hello, xianxian!

1. Log in to the VM OS using any method, open the VM console, and edit the NICfile.
vi /etc/sysconfig/network-scripts/ifcfg-ethxxx
2. Add PEERDNS=no and save the settings.
3. Restart the network service for the modification to take effect.
systemctl restart network

4. Modify the /etc/resolv.conf file as required.

Hope this helps!

View more
  • x
  • convention:

All Answers
olive.zhao
olive.zhao Admin Created May 18, 2022 07:52:59

Hello, friend!

What's the OS of your ECS?

Wait for your feedback!

View more
  • x
  • convention:

xianxian
xianxian Created May 18, 2022 07:58:05

RHEL 7 ECS.
View more
  • x
  • convention:

olive.zhao
olive.zhao Admin Created May 18, 2022 08:01:33

Hello, xianxian!

1. Log in to the VM OS using any method, open the VM console, and edit the NICfile.
vi /etc/sysconfig/network-scripts/ifcfg-ethxxx
2. Add PEERDNS=no and save the settings.
3. Restart the network service for the modification to take effect.
systemctl restart network

4. Modify the /etc/resolv.conf file as required.

Hope this helps!

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.