From owner-freebsd-isp Mon Oct 28 22:03:37 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA29754 for isp-outgoing; Mon, 28 Oct 1996 22:03:37 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA29744 for ; Mon, 28 Oct 1996 22:03:26 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id RAA04564; Tue, 29 Oct 1996 17:02:52 +1100 (EST) Date: Tue, 29 Oct 1996 17:02:51 +1100 (EST) From: "Daniel O'Callaghan" To: Jason Lixfeld cc: freebsd-isp@freebsd.org Subject: Re: HEEEELP!! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jason, On Tue, 29 Oct 1996, Jason Lixfeld wrote: > I got a Liiiiiiiiiiiiiitttttle prollem! :) > > I recently took the advice of an email aquaintance to set my > sysconfig with a couple of lines. They are: > network_interfaces="lo0" > ifconfig_lo0="inet 127.0.0.1" That was me, I believe. I'll send you my sysconfig so you can have a look at it. Trouble with caching nameservers is that if you are not connected to the net, you can end up in a dns block. It is the nameserver 127.0.0.1 line in /etc/resolv.conf which has caused this. What I suggest you do is have install the following in /usr/local/bin --- dns-off --- #!/bin/sh if [ -f /etc/resolv.conf ] ; then mv /etc/resolv.conf /etc/resolv.conf.dns fi --- dns-on --- #!/bin/sh if [ -f /etc/resolv.conf.dns ] ; then mv /etc/resolv.conf.dns /etc/resolv.conf fi And in /etc/netstart, near the top, put /usr/local/bin/dns-off so that you boot up with local dns off. After you have linked to your ISP, run dns-on, and if you disconnect, run dns-off. If anyone else has better ideas, I'd like to hear of them. Danny