The company's new server is using the latest Ubuntu 12.04, colleagues and I reflect a problem, after each reboot,/etc/resolv.conf inside the set nameserver was emptied, very strange
root@ttpod:~# cat/etc/resolv.conf
# Dynamic resolv.conf (5) file for glibc resolver (3) generated by resolvconf (8)
# do don't EDIT this FILE by HAND-YOUR CHANGES'll be overwritten
root@ttpod:~#
Take a closer look and find the problem
Don't EDIT this FILE by HAND-YOUR CHANGES would be overwritten
Do not edit this file manually, the changes you make will be overwritten.
Do not know is this translation, I am relatively rotten e-wen, understand this meaning.
We change DNS generally is here to change, I used Redhat.
In order to prevent the system reboot, the DNS settings are emptied, we want to change the configuration file of the NIC
root@ttpod:~# cat/etc/network/interfaces
# This file describes the network interfaces available on your system
# And how to activate them. For more information, interfaces (5).
# The Loopback network interface
Auto lo
iface lo inet Loopback
# The Primary network interface
Auto eth0< C8/>iface eth0 inet Static address
192.168.0.2
netmask 255.255.255.0
Gateway 192.168.0.1
Dns-nameservers 192.168.0.1
Add Dns-nameservers dns_address to the inside.
Reboot again, and it won't be emptied.