Muy Simple y al grano.
Modificamos el archivo etc/network/interfaces, y le agregamos el parámetro al final siguiente:
dns-nameservers dns-principal dns-secundario.
Un ejemplo de este archivo es el siguiente:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.1.1.2
netmask 255.255.255.0
gateway 192.1.1.108
dns-nameservers 8.8.8.8 8.8.4.4
Se reinicia el proceso /etc/init.d/networking restart
Ya aquí tiene fijos los DNS a usar y ya no se borran cuando reiniciamos.
Referencias para ampliar el tema:
http://manpages.ubuntu.com/manpages/lucid/man8/resolvconf.8.html
Modificamos el archivo etc/network/interfaces, y le agregamos el parámetro al final siguiente:
dns-nameservers dns-principal dns-secundario.
Un ejemplo de este archivo es el siguiente:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.1.1.2
netmask 255.255.255.0
gateway 192.1.1.108
dns-nameservers 8.8.8.8 8.8.4.4
Se reinicia el proceso /etc/init.d/networking restart
Ya aquí tiene fijos los DNS a usar y ya no se borran cuando reiniciamos.
Referencias para ampliar el tema:
http://manpages.ubuntu.com/manpages/lucid/man8/resolvconf.8.html