Re: [suse-linux-uk-schools] Local Squid DNS Resolving
On Wed, May 07, 2003 at 08:52:28AM +0100, Dug Stokes wrote:
Ok, but we use NT/2000 Servers for DNS... :S
IIRC these are a hacked about version of bind4, personally I wouldn't touch that with a barge pole.
Can you summerise what this does?!
It's a standard configuration for bind 8 with forward and reverse zone files. There are some good docs in the Linux Network Administrators Guide http://www.tldp.org/LDP/nag2/x-087-2-resolv.html Also there is no point in attempting to query the external nameservers for anything on your LAN. They don't know anything about it and will return "not founds".
-----Original Message----- From: Mark Evans [mailto:mpe@st-peters-high.devon.sch.uk] Sent: 06 May 2003 15:50 To: Dug Stokes Subject: Re: [suse-linux-uk-schools] Local Squid DNS Resolving
On Tue, May 06, 2003 at 03:15:31PM +0100, Dug Stokes wrote:
They're internal name servers; I've setup the following in the resolv;
nameserver 10.35.145.130 nameserver 10.35.145.12 nameserver 194.177.160.2 nameserver 194.177.170.2
The top two are interal addresses.
At absolute best this will work some of the time
On machines 10.35.145.130 and 10.35.145.12 put the line forwarders { 194.177.160.2; 194.177.170.2; }; into /etc/named.conf
Assuming that 10.35.145.130 is the master the rest of its /etc/named.conf should look something like
zone "localhost" IN { type master; file "localhost.zone"; check-names fail; allow-update { none; }; };
zone "0.0.127.in-addr.arpa" IN { type master; file "127.0.0.zone"; check-names fail; allow-update { none; }; }; zone "gilberd.essex.sch.uk" IN { type master; file "gilberd.essex.sch.uk.zone"; check-names fail; allow-update { none; }; }; zone "145.35.10.in-addr.arpa" IN { type master; file "10.35.145.zone"; check-names fail; allow-update { none; }; };
Assuming that 10.35.145.12 is a slave then the rest of its /etc/named.conf should look something like
zone "localhost" IN { type master; file "localhost.zone"; check-names fail; allow-update { none; }; };
zone "0.0.127.in-addr.arpa" IN { type master; file "127.0.0.zone"; check-names fail; allow-update { none; }; }; zone "gilberd.essex.sch.uk" IN { type slave; file "slave/db.gilberd.essex.sch.uk"; masters { 10.35.145.130; }; }; zone "145.35.10.in-addr.arpa" IN { type slave; file "slave/db.10.35.145"; masters { 10.35.145.130; }; };
Then remove all references to 194.177.160.2 and 194.177.160.2 in /etc/resolv.conf.
To check that it is working try "host 127.0.0.1 10.35.145.130"
-- Mark Evans St. Peter's CofE High School Phone: +44 1392 204764 X109 Fax: +44 1392 204763
participants (1)
-
Mark Evans