[TriLUG] DNS ( BIND 9 )
Brian McCullough
bdmc at bdmcc-us.com
Sun Jun 27 18:35:17 EDT 2004
OK, I give up.
As I mentioned a while ago, I used to be quite familiar with BIND 4 and
was able to set up DNS servers that worked. I also have managed to get
BIND 8 to work sometimes, but don't seem to be able to get my latest
machine to cooperate.
I am running OpenBSD 3.5 on this machine, and intend to provide a local
DNS server for my internal network, passing through all other domains to
the outside. I have been reading various postings, and trying the
suggestions given, as you will see in the following files. I suspect
that all of my problems are within the named.conf file, since I don't
think that zone files have changed drastically. Because of that, I will
start by just posting /var/named/etc/named.conf ( that is the "official"
one, right, since I don't seem to find one in /etc. ) .
BTW, is there a difference in using the IP address of the local machine or should I always use 127.0.0.1 in the /etc/resolv.conf file? ( If that makes sense. )
OK, here is /var/named/etc/named.conf:
======================================================================
// $OpenBSD: named-dual.conf,v 1.5 2003/09/22 20:44:32 jakob Exp $
//
// Example file for a named configuration with dual views,
// one processing recursive queries only and one processing
// authoritative-only queries.
// Update this list to include only the networks for which you want
// to execute recursive queries. The default setting allows all hosts
// on any IPv4 networks for which the system has an interface, and
// the IPv6 localhost address.
//
acl clients {
localnets;
::1;
};
options {
version ""; // remove this to allow version queries
listen-on { any; };
listen-on-v6 { any; };
forwarders {
64.244.27.141 ;
192.101.21.1;
128.109.131.3;
207.217.126.11;
207.217.121.214 ;
207.217.126.41 ;
207.217.77.42 ;
} ;
};
logging {
category lame-servers { null; };
};
view "recursive" {
match-clients { clients; };
match-recursive-only yes;
// Standard
// zones
//
zone "." {
type hint;
file "standard/root.hint";
};
zone "localhost" {
type master;
file "standard/localhost";
allow-transfer { localhost; };
};
zone "127.in-addr.arpa" {
type master;
file "standard/loopback";
allow-transfer { localhost; };
};
zone
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
type master;
file "standard/loopback6.arpa";
allow-transfer { localhost; };
};
zone
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int" {
type master;
file "standard/loopback6.int";
allow-transfer { localhost; };
};
zone "com" {
type delegation-only;
};
zone "net" {
type delegation-only;
};
};
view "authoritative" {
recursion no;
additional-from-auth no;
additional-from-cache no;
// Master zones
//
zone "bdmcc-us.com" {
type master;
file "master/bdmcc-us.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "master/192.168.1";
};
// Slave zones
//
//zone "otherzone.net" {
// type slave;
// file "slave/otherzone.net";
// masters { 192.168.1.10; [...;] };
//};
};
======================== End of File ===============================
So, what obvious mistake have I made?
Thanks,
Brian
More information about the TriLUG
mailing list