Subject: Re: DNS help required - outside/inside
To: NetBSD Help <port-i386@netbsd.org>
From: Bruce Anderson <brucea@shell.spacestar.net>
List: port-i386
Date: 11/02/2001 17:18:22
On Fri, Nov 2, 2001 9:34 AM, Jon <mailto:jons@dotnet.com> wrote:
>ok, I have a small network, the gateway runs a dns server which lets all
the
>network know about each other.
>
>Now I wish to connect the gateway machine to the internet via a modem (I
>suppose that doesn't matter)
>
>Do I need to have the dns server/gateway to have itself as it's dns
server???
>
>Can I just have the dns servers on the gate way as the ones from my isp
and
>then the rest of the network use the gateway as a dns server???
>
>If I DO need to have the gateway using itself as a dns server how do I use
the
>2 servers from my isp?? what should my resolv.conf look like?
>
>Thanks
>
on my gateway machine NetBSD-1.5.1:
cat /etc/resolv.conf
search zhome.org # local net name
nameserver 127.0.0.1
nameserver 192.168.1.31
##EOF
cat /etc/named.conf
# @(#)named.boot 5.1 (Berkeley) 6/30/90
# boot file for primary name server
# Note that there should be one primary entry for each SOA record.
options {
directory "/etc/namedb";
cleaning-interval 8640;
lame-ttl 60;
max-ncache-ttl 60;
listen-on { 192.168/16; 127/8; };
forwarders {
206.191.XXX.XXX; # your ISP's ns.
};
forwarders {
206.191.XXX.XXX; # your ISP's ns.
};
sortlist {
{ localhost; localnets; };
{ localnets; };
{ { { 192.168.1/24; 192.168.2/24; 192.168.3/24; }; };
};
};
};
# type domain source host/file backup file
#
# primary name server boot file.
# The network number (192.168) is assigned here.
#
zone "." {
type hint;
file "zone/named.cache";
};
zone "zhome.org" {
type master;
file "zone/zhome.org";
};
zone "127.in-addr.arpa" {
type master;
file "zone/127";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "zone/192.168.1";
};
zone "2.168.192.in-addr.arpa" {
type master;
file "zone/192.168.2";
};
zone "3.168.192.in-addr.arpa" {
type master;
file "zone/192.168.3";
};
##EOF
" Stamp out root logins . . . . su " --Bruce Anderson
This message was created and sent using Cyberdog 2.0, MacOS 8.6,
awk, find, sed, sendmail, sh, and NetBSD a free Multi-Platform OS.
NetBSD runs on 44 different system architectures featuring 16
distinct families of CPUs. http://www.netbsd.org/