From: Chris Davies on
Clive McBarton <clivemcbarton(a)web.de> wrote:
> My /etc/resolv.conf gets overwritten periodically. Any ideas why?

Samba? DHCP? ppp? OpenVPN? vpnc? resolvconf entries in
/etc/network/interfaces? 3G (UMTS) modem? Proprietary networking software?

There are several possibilities. Sometimes taking a look at the symlink
for /etc/resolv.conf, or its contents, can point one in the right
direction.

Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/cj3a77x8d3.ln2(a)news.roaima.co.uk
From: Clive McBarton on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

CamaleĆ³n wrote:
> On Thu, 18 Mar 2010 16:53:20 +0100, Clive McBarton wrote:
>
>> My /etc/resolv.conf gets overwritten periodically. Any ideas why?
>
> Maybe because you are using a DHCP setup?

Yes.

> http://wiki.debian.org/NetworkConfiguration#Definingthe.28DNS.29Nameservers

That explains how the resolvconf program and network-manager can change
/etc/resolv.conf. But I carefully deinstalled resolvconf and
network-manager.

> The C library and other resolver libraries look to /etc/resolv.conf for a
> list of nameservers. In the simplest case, that is the file to edit to
> set the list of name servers. *But note that various other programs for
> dynamic configuration will be happy to overwrite your settings:*
>
> 1. The resolvconf program
> 2. The network-manager daemon
> 3. DHCP clients

I assume that means dhcpd. How do I stop it from changing resolv.conf?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuilpQACgkQ+VSRxYk4408jLQCfbWFv/upLvbRvJdVG8LYI1Dd4
TuQAnRdODQoZ2bdtFByULy9COK3TDqYP
=3uRE
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BA29694.2040106(a)web.de
From: Stephen Powell on
On Thu, 18 Mar 2010 17:09:40 -0400 (EDT), Clive McBarton wrote:
> I assume that means dhcpd. How do I stop it from changing resolv.conf?

What kinds of changes do you see happening and what changes are you
trying to prevent? What harm is being caused by those changes?
In other words, what is the real world problem you are trying to solve?

If you have your machine configured with a static
IP address, for example, you won't need DHCP. For servers, that's the
usual way to do it. User desktop machines normally use DHCP.

--
.''`. Stephen Powell <zlinuxman(a)wowway.com>
: :' :
`. `'`
`-


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/1033133589.20137991268947022847.JavaMail.root(a)md01.wow.synacor.com
From: Celejar on
On Thu, 18 Mar 2010 22:09:40 +0100
Clive McBarton <clivemcbarton(a)web.de> wrote:

....

> I assume that means dhcpd. How do I stop it from changing resolv.conf?

I haven't been following the entire thread, but something on your
system has to be running dhcpd. You can either tell it to not to, or
you can configure dhcpd not to use the DNS servers it receives, using
dhcp options like 'prepend' or 'supersede'. See 'man dhcp-options', and
http://ubuntuforums.org/archive/index.php/t-544383.html

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100318171811.4da3ca13.celejar(a)gmail.com
From: Clive McBarton on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To make my original question more precise: I want the stuff I write into
resolv.conf to persist, but it does not have to be in that file. I'm
happy to write things elsewhere as long as *some place* makes my changes
persistent.

Sjoerd Hardeman wrote:
> Therefore, dns settings should be set either via dhcp, in
> /etc/networks/interfaces or via some user-leven config framework like
> wicd or network-manager.

So maybe I should actually *install* resolvconf or reinstall
network-manager? In that case, I need help with where the new config goes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuil7UACgkQ+VSRxYk440/tjgCg3WQ5vMMkDDgQStu6Ytolua9g
6yoAnjbfG4wK1Dkd6iizF+oGa+iuN2Rx
=ybV1
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BA297B5.3050105(a)web.de