From cf14e4bd0a2b55bf1e8dbe70305d2e0dee4187d8 Mon Sep 17 00:00:00 2001 From: Ryan Haggerty Date: Thu, 27 Oct 2005 19:51:35 +0000 Subject: [PATCH] Configuration for bind added. --- testing/bind/README | 8 +++ testing/bind/named.conf | 72 +++++++++++++++++++++++++ testing/bind/named/localdomain.zone | 10 ++++ testing/bind/named/localhost.zone | 12 +++++ testing/bind/named/named.broadcast | 8 +++ testing/bind/named/named.ca | 80 ++++++++++++++++++++++++++++ testing/bind/named/named.example.org | 12 +++++ testing/bind/named/named.ip6.local | 10 ++++ testing/bind/named/named.local | 10 ++++ testing/bind/named/named.zero | 9 ++++ 10 files changed, 231 insertions(+) create mode 100644 testing/bind/README create mode 100644 testing/bind/named.conf create mode 100644 testing/bind/named/localdomain.zone create mode 100644 testing/bind/named/localhost.zone create mode 100644 testing/bind/named/named.broadcast create mode 100644 testing/bind/named/named.ca create mode 100644 testing/bind/named/named.example.org create mode 100644 testing/bind/named/named.ip6.local create mode 100644 testing/bind/named/named.local create mode 100644 testing/bind/named/named.zero diff --git a/testing/bind/README b/testing/bind/README new file mode 100644 index 00000000..777f13d1 --- /dev/null +++ b/testing/bind/README @@ -0,0 +1,8 @@ +named dir belongs in /var +named.conf belongs in /etc + +after starting the named service you sould be able to query it by saying + nslookup vm.example.org +provided this name server has the address 192.168.0.1 and the host doing the look up has the proper resolv.conf (ie nameserver 192.168.0.1) + +see /var/named/named.example.org for more details diff --git a/testing/bind/named.conf b/testing/bind/named.conf new file mode 100644 index 00000000..e581e8cc --- /dev/null +++ b/testing/bind/named.conf @@ -0,0 +1,72 @@ +// +// named.conf for Red Hat caching-nameserver +// + +options { + directory "/var/named"; + dump-file "/var/named/data/cache_dump.db"; + statistics-file "/var/named/data/named_stats.txt"; + /* + * If there is a firewall between you and nameservers you want + * to talk to, you might need to uncomment the query-source + * directive below. Previous versions of BIND always asked + * questions using port 53, but BIND 8.1 uses an unprivileged + * port by default. + */ + // query-source address * port 53; +}; + +// +// a caching only nameserver config +// +controls { + inet 127.0.0.1 allow { localhost; } keys { rndckey; }; +}; + +zone "." IN { + type hint; + file "named.ca"; +}; + +zone "example.org" { + type master; + file "named.example.org"; +}; + +zone "localdomain" IN { + type master; + file "localdomain.zone"; + allow-update { none; }; +}; + +zone "localhost" IN { + type master; + file "localhost.zone"; + allow-update { none; }; +}; + +zone "0.0.127.in-addr.arpa" IN { + type master; + file "named.local"; + allow-update { none; }; +}; + +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" IN { + type master; + file "named.ip6.local"; + allow-update { none; }; +}; + +zone "255.in-addr.arpa" IN { + type master; + file "named.broadcast"; + allow-update { none; }; +}; + +zone "0.in-addr.arpa" IN { + type master; + file "named.zero"; + allow-update { none; }; +}; + +include "/etc/rndc.key"; diff --git a/testing/bind/named/localdomain.zone b/testing/bind/named/localdomain.zone new file mode 100644 index 00000000..a9b047bb --- /dev/null +++ b/testing/bind/named/localdomain.zone @@ -0,0 +1,10 @@ +$TTL 86400 +@ IN SOA localhost root ( + 42 ; serial (d. adams) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum + IN NS localhost +localhost IN A 127.0.0.1 + diff --git a/testing/bind/named/localhost.zone b/testing/bind/named/localhost.zone new file mode 100644 index 00000000..61b70d6a --- /dev/null +++ b/testing/bind/named/localhost.zone @@ -0,0 +1,12 @@ +$TTL 86400 +@ IN SOA @ root ( + 42 ; serial (d. adams) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum + + IN NS @ + IN A 127.0.0.1 + IN AAAA ::1 + diff --git a/testing/bind/named/named.broadcast b/testing/bind/named/named.broadcast new file mode 100644 index 00000000..7155653d --- /dev/null +++ b/testing/bind/named/named.broadcast @@ -0,0 +1,8 @@ +$TTL 86400 +@ IN SOA localhost root ( + 42 ; serial (d. adams) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum + IN NS localhost diff --git a/testing/bind/named/named.ca b/testing/bind/named/named.ca new file mode 100644 index 00000000..c6c435c4 --- /dev/null +++ b/testing/bind/named/named.ca @@ -0,0 +1,80 @@ +; 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 . " +; configuration file of BIND domain name servers). +; +; This file is made available by InterNIC +; under anonymous FTP as +; file /domain/named.cache +; on server FTP.INTERNIC.NET +; -OR- RS.INTERNIC.NET +; +; last update: Jan 29, 2004 +; related version of root zone: 2004012900 +; +; +; 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 192.228.79.201 +; +; 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 +; +; operated by RIPE NCC +; +. 3600000 NS K.ROOT-SERVERS.NET. +K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 +; +; operated by ICANN +; +. 3600000 NS L.ROOT-SERVERS.NET. +L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 +; +; operated by WIDE +; +. 3600000 NS M.ROOT-SERVERS.NET. +M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 +; End of File diff --git a/testing/bind/named/named.example.org b/testing/bind/named/named.example.org new file mode 100644 index 00000000..43a877e6 --- /dev/null +++ b/testing/bind/named/named.example.org @@ -0,0 +1,12 @@ +@ IN SOA example.org. root.vm.example.org. ( + 961230 ; Serial + 3600 ; Refresh + 300 ; Retry + 3600000 ; Expire + 3600 ) ; Minimum + IN NS vm.example.org. + +; +; Define the rest of the subnet +; +vm.example.org. IN A 192.168.0.1 ; the vm address diff --git a/testing/bind/named/named.ip6.local b/testing/bind/named/named.ip6.local new file mode 100644 index 00000000..1aeeeefd --- /dev/null +++ b/testing/bind/named/named.ip6.local @@ -0,0 +1,10 @@ +$TTL 86400 +@ IN SOA localhost. root.localhost. ( + 1997022700 ; Serial + 28800 ; Refresh + 14400 ; Retry + 3600000 ; Expire + 86400 ) ; Minimum + IN NS localhost. + +1 IN PTR localhost. diff --git a/testing/bind/named/named.local b/testing/bind/named/named.local new file mode 100644 index 00000000..8bfc435f --- /dev/null +++ b/testing/bind/named/named.local @@ -0,0 +1,10 @@ +$TTL 86400 +@ IN SOA localhost. root.localhost. ( + 1997022700 ; Serial + 28800 ; Refresh + 14400 ; Retry + 3600000 ; Expire + 86400 ) ; Minimum + IN NS localhost. + +1 IN PTR localhost. diff --git a/testing/bind/named/named.zero b/testing/bind/named/named.zero new file mode 100644 index 00000000..24c07e4a --- /dev/null +++ b/testing/bind/named/named.zero @@ -0,0 +1,9 @@ +$TTL 86400 +@ IN SOA localhost root ( + 42 ; serial (d. adams) + 3H ; refresh + 15M ; retry + 1W ; expiry + 1D ) ; minimum + IN NS localhost +