Ubuntu15.04 Modify/etc/resolv. conf directly, and the configuration is lost after the DNS is restarted. Correct Method: # vim/etc/network/interfaces, add & ldquo; dns-nameservers223.5.5.5 & rdquo; restart systemctlrestartnetworking. service, test OK # vim/etc
Ubuntu 15.04 directly Modifies/etc/resolv. conf, ubuntu dns config free dynamic dns ubuntu And the configuration is lost after the DNS is restarted.
Ubuntu dns
Correct method:
See dns server ubuntu
-
# Vim/etc/network/interfaces, add "dns-nameservers 223.5.5.5" to the end of the file"
Restart systemctl restart networking. service and test OK.
-
# Vim/etc/resolvconf/resolv. conf. d/base (the file is empty by default)
Nameserver 223.5.5.5
Nameserver 223.6.6.6
# Resolvconf-u (update to resolv. conf)
# More/etc/resolv. conf
# Dynamic resolv. conf (5) file for glibc resolver (3) generated by resolvconf (8)
# Do not edit this file by hand -- YOUR CHANGES WILL BE OVERWRITTEN
Nameserver 223.5.5.5
Nameserver 223.6.6.6
You do not need to restart the NIC/system. Test OK. After the system is restarted, OK.
Check dns in ubuntu
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
Dns server linux ubuntu
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-12/126867.htm