Virtual Machines


Virtual Machines

Documentation > Products > Virtual Machines > Method to Automatically Restore Ubuntu System after DNS Modification and Restarting

The automatic recovery method after Ubuntu system modifying DNS and restarting

Problem Phenomenon:

After the Virtual Machines in the ubuntu system modifying the DNS information in the resolv.conf and restarting, the information in resolv.conf will revert to the pre-modified information;

Problem Causes:

As shown below, /etc/resolv.conf in the ubuntu system is actually a soft link of /run/resolvconf/resolv.conf;


You can directly modify the DNS information in the /run/resolvconf/resolv.conf;

If your problem still can not solved, please submit open ticket to us.

Update Time:2019-08-28 21:38:32