After the DNS is restarted in Ubuntu, We need to reset the problem: we set the/etc/resolv. conf file through the command. But after the system is restarted, It is restored to the default DNS. How can we solve this problem? First backup: sudocp/etc/resolv. conf/etc/resolv. conf. bak and edit sudogvim/etc/dhcp3/dhclient. conf adds the following lines to the end, that is, the two DNS servers.
After the DNS is restarted in Ubuntu, We need to reset the problem: we set the/etc/resolv. conf file through the command. But after the system is restarted, It is restored to the default DNS. How can we solve this problem?
First backup:
Sudo cp/etc/resolv. conf/etc/resolv. conf. bak
Edit
Sudo gvim/etc/dhcp3/dhclient. conf
Add the following lines to the end, that is, the two DNS servers.
Prepend domain-name-servers 208.67.222.222, 208.67.220.220;
# Fill in the two servers according to their own DNS.
Restart the network:
Sudo/etc/init. d/networking restart