On Saturday 27 October 2018 18:49:13 Gene Heskett wrote: > On Saturday 27 October 2018 18:20:16 David wrote: > > On Sun, 28 Oct 2018 at 05:21, Steve McIntyre <st...@einval.com> wrote: > > > Gene Heskett wrote: > > > >auto eth0 > > > >iface eth0 inet static > > > >address 192.168.NN.2/24 > > > >gateway 192.168.NN.1 > > > >dns-nameserver 192.168.NN.1 > > > >dns-search hosts dns > > > > > > I'm assuming that "NN" is a placeholder you've added, and not > > > copied verbatim from the file! > > > > > > Otherwise, that last line looks suspect. The "dns-nameserver" and > > > "dns-search" lines are instructions for resolvconf when setting up > > > networking. The "dns-search" line is meant to be passed straight > > > through into resolv.conf to set up a DNS search path. A valid > > > example from the resolvconf man page is "dns-search foo.org > > > bar.com". What that means is that each time you look up something > > > that's no fully-qualified (e.g. "foo"), this machine will be > > > looking for "foo.hosts" then "foo.dns". That's probably not what > > > you want. However, it'll be harmless if you're looking up FQDN > > > hostnames all the time. > > > > There seems to be an ongoing theme here with lines that look like > > *search hosts dns > > popping up in other places in Gene's system. > > > > See: > > https://lists.debian.org/debian-user/2017/10/msg00857.html > > https://lists.debian.org/debian-user/2017/10/msg00859.html > > > > Gene, the line > > > > > >dns-search hosts dns > > > > that you show above does not match anything documented by > > the manpages on wheezy. I checked > > interfaces(5) > > resolv.conf(5) > > resolvconf(8) > > nsswitch.conf(5)
And I just noticed you were checking wheezy, but the problem is in a stretch install, wheezy works fine using 5 yo man pages. Stretch does not, using year old man pages that are installed with stretch. > > Gene, what are you trying to achieve with that line? > > Whatever it takes to get a working gateway at bootup. Next time I > reboot, I'll kill that line first. If I can't ping yahoo.com, (= no > gateway. so it cannot get to the internet) I'll put it back. Thanks David. -- Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>