On Fri, May 25, 2012 at 11:47 AM, Camaleón <noela...@gmail.com> wrote: > On Thu, 24 May 2012 15:13:13 -0700, Paul Zimmerman wrote: >> Camaleón <noela...@gmail.com> wrote: >>>On Thu, 24 May 2012 07:33:21 -0700, Paul Zimmerman wrote: >>>> >>>> dhclient in Squeeze pays no attention to the config file >>>> at/etc/dhcp/dhclient.conf >>>> >>>> All I need it to do is prepend the local host to resolv.conf so >>>> dnscaching will work. >>> >>> You mean the "prepend domain-name-servers 127.0.0.1" stanza? >> >> Yes, that's what I tried first. It has absolutely no effect. Then I >> created some specific "interface" entries. Since it left error messages >> in the log when I made mistakes, it is clearly reading the config file. > > That was going to be my next question: if the file is being read at all. > As so it seems, then is just that specific line that fails or that has no > visible effect, meaning your "/etc/resolv.conf" file remains the same, > right? > > I use N-M with a wireless card and I have edited "/etc/dhcp/ > dhclient.conf" and set: > > prepend domain-name-servers 127.0.0.1; > > Then restarted the NM service ("service network-manager restart") and > checked for the content of "/etc/resolv.conf". The first line now is: > > nameserver 127.0.0.1
For the record, this works for squeeze without NM or WICD - for me. Check how well or badly dhclient's behaving by changing "RUN=no" to "RUN=yes" in "/etc/dhcp/dhclient-enter-hooks.d/debug", restarting your network (in your case, I assume that "service wicd restart" will do it but I've never used WICD), and checking "/var/lib/dhcp/dhclient.eth0.leases" and /tmp/dhclient-script.debug". -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=SybC3=yr=8rcpwzqclwqtn4uvryamt_pc23v8y22rz...@mail.gmail.com