Subject: Re: How can this be done?
To: NetBSD netbsd-help mailing list <netbsd-help@netbsd.org>
From: Julian Coleman <jdc@coris.demon.co.uk>
List: netbsd-help
Date: 06/13/2001 09:53:53
> 	Alternatively you could run a dns server on amiga, and point
> 	both machines at amiga in resolv.conf.

This is what I do on my gateway machine.  As part of the PPP ip-up script,
I generate a /etc/named.conf.$LOC with the correct name servers, for example
(I'm currently connected via demon.net, so LOC=demon) the forwarding part is :

	options {
	  forward first;
	  forwarders {
	    158.152.1.58;
	    158.152.1.43;
	  };
	};

and then do a :

	cmp -s /etc/named.conf.$LOC /etc/named.conf || \
	    (cp -p /etc/named.conf.$LOC /etc/named.conf && \
	    kill -HUP `cat /var/run/named.pid`)

I also flush NAT rules (`/usr/sbin/ipnat -F`), run `ntpdate` and (if on demon)
run `/usr/sbin/sendmail -q`.

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/