LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Debian doesn't remember DNS settings (https://www.linuxquestions.org/questions/linux-networking-3/debian-doesnt-remember-dns-settings-878922/)

qrange 05-05-2011 01:02 AM

Debian doesn't remember DNS settings
 
on every boot, I have to enter DNS address again.
this problem started with latest update to debian64 testing
how to solve it?

micxz 05-05-2011 01:08 AM

Does this help:
http://wiki.debian.org/NetworkConfig...lvconf_program

qrange 05-05-2011 01:25 AM

there is already line "dns-nameservers 12.34.56.78 12.34.56.79"
in /etc/network/interfaces
I'm using static IP settings.

that file also has this note " # dns-* options are implemented by the resolvconf package, if installed"
however, package resolvconf is NOT installed. should it be?

micxz 05-05-2011 02:09 AM

Quote:

Originally Posted by qrange (Post 4346999)
there is already line "dns-nameservers 12.34.56.78 12.34.56.79"
in /etc/network/interfaces
I'm using static IP settings.

that file also has this note " # dns-* options are implemented by the resolvconf package, if installed"
however, package resolvconf is NOT installed. should it be?

If your using static settings you should be able to simple enter your name servers in /etc/resolv.conf. Unless this is what is getting overwritten your all set.

markush 05-05-2011 02:23 AM

Are you sure that DHCP is really disabled? I'd suggest to check if dhcpcd (or which program Debian uses) really doesn't run when the system is started. Since you wrote that you updated your system it may be that any local configurationfiles have been overwritten.

If you have dhcpcd, you can prevent it from overwriting /etc/resolv.conf with an additional line in the dhcpcd.conf file
Code:

nohook resolv.conf
Markus

qrange 05-05-2011 02:58 AM

/etc/resolv.conf:
---
# Generated by NetworkManager
nameserver 12.34.56.78
nameserver 12.34.56.78
---


dhcp is not in 'ps -ef'


edit: er.. solved, by installing the package 'resolvconf'. should have done that after reading your first reply.


All times are GMT -5. The time now is 08:12 PM.