Find the answer to your Linux question:
Results 1 to 2 of 2
I haven't used Linux in a few years (Wandering about in 'BSD land), so this is probably a stupid question. Using Debian 4.0 and pppoeconf (With the option to start ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! AudioFox's Avatar
    Join Date
    Nov 2007
    Posts
    5

    DNS & PPPoE


    I haven't used Linux in a few years (Wandering about in 'BSD land), so this is probably a stupid question. Using Debian 4.0 and pppoeconf (With the option to start the connection at boot time) to connect to a DSL connection, DNS is screwed up every time the machine is restarted. The nameserver addresses are downloaded properly when the connection is started, but something overwrites resolv.conf during boot up with this:

    # generated by NetworkManager, do not edit!

    search myhome.westell.com


    nameserver 192.168.1.1
    nameserver 192.168.1.1


    Changing the permissions of resolv.conf to read-only doesn't prevent this. What is a NetworkManager and how do I prevent it from fiddling with files, is there something in Linux analogous to rc.conf where things like this are started?

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Location
    Camp Pendleton
    Posts
    55
    Hi,

    Well, the easy answer is to make /etc/resolv.conf immutable, which will prevent any fiddling. Or you could remove the networkmanager packages altogether, or possibly make sure none of your devices are set to 'roam' or to use dhcp...

    See /usr/share/doc/network-manager/README.Debian.
    Code:
    NetworkManager consists of two parts: one is on the system level daemon that
    manages the connections and gathers information about new networks. The other 
    is a systray applet that users can use to interact with the NetworkManager 
    daemon. 
    
    Configuration of wireless and ethernet interfaces
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Only devices that are *not* listed in /etc/network/interfaces are managed by NM.
    
    After modifying /etc/network/interfaces you may want to restart NM with the
    command "/etc/dbus-1/event.d/25NetworkManager restart".
    
    Dial-up configuration
    ~~~~~~~~~~~~~~~~~~~~~
    After configuring your PPP interface (either manually or by using a tool like
    "pppconfig") to work with a peer called "myisp" you should edit 
    /etc/network/interfaces and add a stanza like this:
    
    iface ppp0 inet ppp
            provider myisp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •