Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: ray carter Newsgroups: comp.sys.raspberry-pi Subject: Re: resolv.conf problem Date: 21 Aug 2015 16:29:42 GMT Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 6pKJ3gSokHq4cfmSUaxm9gQHigR+iNER4CicPn4fTjqvUqbpnE Cancel-Lock: sha1:jeQCP3TF8sHb2vpihJtn+Heo0vs= User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Xref: csiph.com comp.sys.raspberry-pi:9461 On Fri, 21 Aug 2015 17:01:26 +0100, Adrian wrote: > I'm having "fun" with a Pi 2 when it is using WiFi rather than Ethernet. > > > On Ethernet, it appears to boot up, and pick up the time server OK, but > on WiFi, it doesn't. Doing some digging around on line, the suggestions > seem to centre on making sure that the /etc/resolv.conf file has name > servers in it. > > I've edited the file to put in a number of entries (cut and paste from a > Pi B+), and the Pi 2 picks up the time server, and away we go. As soon > as I reboot, we are back to the same problem. It seems that either the > shutdown or the boot operation empties the file and puts : > > # Generated by resolvconf > > in the file instead, which is starting to get annoying. > > Strangely, the Pi 2 has a /etc/resolv.conf and a /etc/resolvconf.conf > file, whereas the B+ only has the former. Should I get rid of the > latter file ? > > Both machines are running raspbian. > > Adrian Does this help: http://unix.stackexchange.com/questions/216774/keep-losing-resolv-conf- configurations