Date: Tue, 29 Oct 1996 17:02:51 +1100 (EST) From: "Daniel O'Callaghan" <danny@panda.hilink.com.au> To: Jason Lixfeld <carrera@idirect.com> Cc: freebsd-isp@freebsd.org Subject: Re: HEEEELP!! Message-ID: <Pine.BSF.3.91.961029165343.3907E-100000@panda.hilink.com.au> In-Reply-To: <Pine.BSI.3.94.961029000531.20408A-100000@hometown.idirect.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.961029165343.3907E-100000>
