diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-01-20 22:30:14 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-01-20 22:30:14 +0000 |
commit | 68752671b0beaebea9702b5990b48211c5e15ac7 (patch) | |
tree | 1d10ebb792c7750bce6d2f3810616a713a36a410 /etc | |
parent | 86f0d57a58c92e1fbc364621c62d26834b836805 (diff) |
bind9 configuration files
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bind/db.localhost | 15 | ||||
-rw-r--r-- | etc/bind/db.loopback | 14 | ||||
-rw-r--r-- | etc/bind/db.loopback6.arpa | 14 | ||||
-rw-r--r-- | etc/bind/db.loopback6.int | 14 | ||||
-rw-r--r-- | etc/bind/named-dual.conf | 78 | ||||
-rw-r--r-- | etc/bind/named-simple.conf | 68 | ||||
-rw-r--r-- | etc/bind/root.hint | 81 |
7 files changed, 284 insertions, 0 deletions
diff --git a/etc/bind/db.localhost b/etc/bind/db.localhost new file mode 100644 index 00000000000..2bed2a01392 --- /dev/null +++ b/etc/bind/db.localhost @@ -0,0 +1,15 @@ +; $OpenBSD: db.localhost,v 1.1 2003/01/20 22:30:13 jakob Exp $ + +$ORIGIN localhost. +$TTL 6h + +@ IN SOA localhost. root.localhost. ( + 1 ; serial + 1h ; refresh + 30m ; retry + 7d ; expiration + 1h ) ; minimum + + NS localhost. + A 127.0.0.1 + AAAA ::1 diff --git a/etc/bind/db.loopback b/etc/bind/db.loopback new file mode 100644 index 00000000000..ba5bfe4fae6 --- /dev/null +++ b/etc/bind/db.loopback @@ -0,0 +1,14 @@ +; $OpenBSD: db.loopback,v 1.1 2003/01/20 22:30:13 jakob Exp $ + +$ORIGIN 127.in-addr.arpa. +$TTL 6h + +@ IN SOA localhost. root.localhost. ( + 1 ; serial + 1h ; refresh + 30m ; retry + 7d ; expiration + 1h ) ; minimum + + NS localhost. +1.0.0 PTR localhost. diff --git a/etc/bind/db.loopback6.arpa b/etc/bind/db.loopback6.arpa new file mode 100644 index 00000000000..d849b79e32d --- /dev/null +++ b/etc/bind/db.loopback6.arpa @@ -0,0 +1,14 @@ +; $OpenBSD: db.loopback6.arpa,v 1.1 2003/01/20 22:30:13 jakob Exp $ + +$ORIGIN 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. +$TTL 6h + +@ IN SOA localhost. root.localhost. ( + 1 ; serial + 1h ; refresh + 30m ; retry + 7d ; expiration + 1h ) ; minimum + + NS localhost. +1 PTR localhost. diff --git a/etc/bind/db.loopback6.int b/etc/bind/db.loopback6.int new file mode 100644 index 00000000000..f40b8cabde6 --- /dev/null +++ b/etc/bind/db.loopback6.int @@ -0,0 +1,14 @@ +; $OpenBSD: db.loopback6.int,v 1.1 2003/01/20 22:30:13 jakob Exp $ + +$ORIGIN 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. +$TTL 6h + +@ IN SOA localhost. root.localhost. ( + 1 ; serial + 1h ; refresh + 30m ; retry + 7d ; expiration + 1h ) ; minimum + + NS localhost. +1 PTR localhost. diff --git a/etc/bind/named-dual.conf b/etc/bind/named-dual.conf new file mode 100644 index 00000000000..0d4e80529f2 --- /dev/null +++ b/etc/bind/named-dual.conf @@ -0,0 +1,78 @@ +// $OpenBSD: named-dual.conf,v 1.1 2003/01/20 22:30:13 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. +// +acl clients { + localnets; +}; + +options { + directory "/"; // chroot named, default in OpenBSD + // directory "/var/named"; // non-chroot named + + version ""; // remove this to allow version queries +}; + +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; }; + }; +}; + +view "authoritative" { + recursion no; + additional-from-auth no; + additional-from-cache no; + + // Master zones + // + //zone "myzone.net" { + // type master; + // file "master/myzone.net"; + //}; + + // Slave zones + // + //zone "otherzone.net" { + // type slave; + // file "slave/otherzone.net"; + // masters { 192.168.1.10; [...;] }; + //}; +}; diff --git a/etc/bind/named-simple.conf b/etc/bind/named-simple.conf new file mode 100644 index 00000000000..836109fdac2 --- /dev/null +++ b/etc/bind/named-simple.conf @@ -0,0 +1,68 @@ +// $OpenBSD: named-simple.conf,v 1.1 2003/01/20 22:30:13 jakob Exp $ +// +// Example file for a simple named configuration, processing both +// recursive and authoritative queries using one cache. + + +// 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. +// +acl clients { + localnets; +}; + +options { + directory "/"; // chroot named, default in OpenBSD + // directory "/var/named"; // non-chroot named + + version ""; // remove this to allow version queries + + allow-recursion { clients; }; +}; + +// 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; }; +}; + +// Master zones +// +//zone "myzone.net" { +// type master; +// file "master/myzone.net"; +//}; + +// Slave zones +// +//zone "otherzone.net" { +// type slave; +// file "slave/otherzone.net"; +// masters { 192.0.2.1; [...;] }; +//}; diff --git a/etc/bind/root.hint b/etc/bind/root.hint new file mode 100644 index 00000000000..97a724df9e0 --- /dev/null +++ b/etc/bind/root.hint @@ -0,0 +1,81 @@ +; $OpenBSD: root.hint,v 1.1 2003/01/20 22:30:13 jakob Exp $ +; +; This file holds the information on root name servers needed to +; initialize cache of Internet domain name servers +; (e.g. reference this file in the "cache . <file>" +; configuration file of BIND domain name servers). +; +; This file is made available by InterNIC +; under anonymous FTP as +; file /domain/named.root +; on server FTP.INTERNIC.NET +; +; last update: Nov 5, 2002 +; related version of root zone: 2002110501 +; +; +; formerly NS.INTERNIC.NET +; +. 3600000 IN NS A.ROOT-SERVERS.NET. +A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 +; +; formerly NS1.ISI.EDU +; +. 3600000 NS B.ROOT-SERVERS.NET. +B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107 +; +; formerly C.PSI.NET +; +. 3600000 NS C.ROOT-SERVERS.NET. +C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 +; +; formerly TERP.UMD.EDU +; +. 3600000 NS D.ROOT-SERVERS.NET. +D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90 +; +; formerly NS.NASA.GOV +; +. 3600000 NS E.ROOT-SERVERS.NET. +E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 +; +; formerly NS.ISC.ORG +; +. 3600000 NS F.ROOT-SERVERS.NET. +F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 +; +; formerly NS.NIC.DDN.MIL +; +. 3600000 NS G.ROOT-SERVERS.NET. +G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 +; +; formerly AOS.ARL.ARMY.MIL +; +. 3600000 NS H.ROOT-SERVERS.NET. +H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 +; +; formerly NIC.NORDU.NET +; +. 3600000 NS I.ROOT-SERVERS.NET. +I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 +; +; operated by VeriSign, Inc. +; +. 3600000 NS J.ROOT-SERVERS.NET. +J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 +; +; housed in LINX, operated by RIPE NCC +; +. 3600000 NS K.ROOT-SERVERS.NET. +K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 +; +; operated by IANA +; +. 3600000 NS L.ROOT-SERVERS.NET. +L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 +; +; housed in Japan, operated by WIDE +; +. 3600000 NS M.ROOT-SERVERS.NET. +M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 +; End of File |