michael@556: michael@556: ## michael@556: ## @l_prefix@/etc/bind/named.conf -- BIND configuration michael@556: ## michael@556: michael@556: controls { michael@556: unix "@l_prefix@/var/bind/named.ctl" michael@556: perm 0600 owner @l_ruid@ group @l_rgid@ michael@556: keys { "rndc-key"; }; michael@556: #inet 127.0.0.1 port 953 michael@556: #allow { 127.0.0.1; } michael@556: #keys { "rndc-key"; }; michael@556: }; michael@556: michael@556: include "@l_prefix@/etc/bind/rndc.key"; michael@556: michael@556: logging { michael@556: channel logfile { michael@556: file "@l_prefix@/var/bind/named.log"; michael@556: severity info; michael@556: print-category yes; michael@556: print-severity no; michael@556: print-time yes; michael@556: }; michael@556: category "default" { "logfile"; }; michael@556: category "client" { "logfile"; }; michael@556: category "config" { "logfile"; }; michael@556: category "database" { "logfile"; }; michael@556: category "delegation-only" { "logfile"; }; michael@556: category "dispatch" { "logfile"; }; michael@556: category "dnssec" { "logfile"; }; michael@556: category "general" { "logfile"; }; michael@556: category "lame-servers" { "logfile"; }; michael@556: category "network" { "logfile"; }; michael@556: category "notify" { "logfile"; }; michael@556: category "queries" { "logfile"; }; michael@556: category "resolver" { "logfile"; }; michael@556: category "security" { "logfile"; }; michael@556: category "update" { "logfile"; }; michael@556: category "xfer-in" { "logfile"; }; michael@556: category "xfer-out" { "logfile"; }; michael@556: category "unmatched" { "null"; }; michael@556: }; michael@556: michael@556: options { michael@556: pid-file "@l_prefix@/var/bind/named.pid"; michael@556: directory "@l_prefix@/etc/bind/named.db"; michael@556: statistics-file "@l_prefix@/var/bind/named.stats"; michael@556: allow-query { any; }; michael@556: allow-transfer { any; }; michael@556: allow-recursion { 127.0.0.0/8; }; michael@556: recursion yes; michael@556: transfers-in 10; michael@556: transfers-per-ns 2; michael@556: max-transfer-time-in 120; michael@556: transfer-format one-answer; michael@556: cleaning-interval 60; michael@556: interface-interval 60; michael@556: listen-on port 53 { 127.0.0.1; }; michael@556: #query-source address 127.0.0.1 port *; michael@556: #transfer-source 127.0.0.1; michael@556: #notify-source 127.0.0.1; michael@556: }; michael@556: michael@556: zone "." IN { michael@556: type hint; michael@556: file "db.root"; michael@556: }; michael@556: michael@556: zone "localhost" IN { michael@556: type master; michael@556: file "db.localhost"; michael@556: notify no; michael@556: allow-update { none; }; michael@556: allow-transfer { any; }; michael@556: }; michael@556: michael@556: zone "0.0.127.in-addr.arpa" IN { michael@556: type master; michael@556: file "db.localhost.ipv4"; michael@556: notify no; michael@556: allow-update { none; }; michael@556: allow-transfer { any; }; michael@556: }; michael@556: michael@556: zone "1.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" { michael@556: type master; michael@556: file "db.localhost.ipv6"; michael@556: notify no; michael@556: allow-update { none; }; michael@556: allow-transfer { any; }; michael@556: }; michael@556: michael@556: michael@556: michael@556: ## michael@556: ## @l_prefix@/etc/bind/rndc.conf -- BIND rndc configuration michael@556: ## michael@556: michael@556: options { michael@556: default-server localhost-unix; michael@556: }; michael@556: michael@556: server localhost-unix { michael@556: addresses { "@l_prefix@/var/bind/named.ctl"; }; michael@556: key "rndc-key"; michael@556: }; michael@556: michael@556: server localhost-inet { michael@556: addresses { 127.0.0.1; }; michael@556: port 953; michael@556: key "rndc-key"; michael@556: }; michael@556: michael@556: include "@l_prefix@/etc/bind/rndc.key"; michael@556: michael@556: michael@556: michael@556: ;; michael@556: ;; db.root -- Internet Root Nameservers michael@556: ;; DO NOT EDIT, IT WAS AUTOMATICALLY CREATED ON 2011-02-06 BY db.root.sh! michael@556: ;; michael@556: michael@556: . 99999999 IN NS A.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS B.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS C.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS D.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS E.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS F.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS G.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS H.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS I.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS J.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS K.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS L.ROOT-SERVERS.NET. michael@556: . 99999999 IN NS M.ROOT-SERVERS.NET. michael@556: A.ROOT-SERVERS.NET. 99999999 IN A 198.41.0.4 michael@556: A.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:503:ba3e::2:30 michael@556: B.ROOT-SERVERS.NET. 99999999 IN A 192.228.79.201 michael@556: C.ROOT-SERVERS.NET. 99999999 IN A 192.33.4.12 michael@556: D.ROOT-SERVERS.NET. 99999999 IN A 128.8.10.90 michael@556: E.ROOT-SERVERS.NET. 99999999 IN A 192.203.230.10 michael@556: F.ROOT-SERVERS.NET. 99999999 IN A 192.5.5.241 michael@556: F.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:500:2f::f michael@556: G.ROOT-SERVERS.NET. 99999999 IN A 192.112.36.4 michael@556: H.ROOT-SERVERS.NET. 99999999 IN A 128.63.2.53 michael@556: H.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:500:1::803f:235 michael@556: I.ROOT-SERVERS.NET. 99999999 IN A 192.36.148.17 michael@556: I.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:7fe::53 michael@556: J.ROOT-SERVERS.NET. 99999999 IN A 192.58.128.30 michael@556: J.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:503:c27::2:30 michael@556: K.ROOT-SERVERS.NET. 99999999 IN A 193.0.14.129 michael@556: K.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:7fd::1 michael@556: L.ROOT-SERVERS.NET. 99999999 IN A 199.7.83.42 michael@556: L.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:500:3::42 michael@556: M.ROOT-SERVERS.NET. 99999999 IN A 202.12.27.33 michael@556: M.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:dc3::35 michael@556: michael@556: michael@556: michael@556: #!/bin/sh michael@556: michael@556: ROOTFILE=./db.root michael@556: michael@556: echo '@l_prefix@' | egrep '^@l_' | egrep 'prefix@$' >/dev/null michael@556: if [ $? -eq 0 ]; then michael@556: CURL='curl' michael@556: DIG='dig' michael@556: else michael@556: CURL='@l_prefix@/bin/openpkg curl' michael@556: DIG='@l_prefix@/bin/dig' michael@556: fi michael@556: michael@556: date=`date '+%Y-%m-%d'` michael@556: cat >$ROOTFILE <$ROOTFILE.raw michael@556: for i in A B C D E F G H I J K L M; do michael@556: ${DIG} @$i.ROOT-SERVERS.NET . NS >>$ROOTFILE.raw michael@556: done michael@556: [ -f $ROOTFILE.raw ] || exit 1 michael@556: awk <$ROOTFILE.raw ' michael@556: /[ ]NS[ ]/ { printf("%-20s 99999999 IN NS %s\n", $1, toupper($NF)); } michael@556: /[ ]AAAA[ ]/ { printf("%-20s 99999999 IN AAAA %s\n", toupper($1), tolower($NF)); } michael@556: /[ ]A[ ]/ { printf("%-20s 99999999 IN A %s\n", toupper($1), tolower($NF)); } michael@556: ' |\ michael@556: egrep -v '^;' |\ michael@556: sort -u >>$ROOTFILE michael@556: echo "" >>$ROOTFILE michael@556: rm $ROOTFILE.raw michael@556: michael@556: michael@556: michael@556: ;; michael@556: ;; db.localhost -- zonefile for the forward mapping of the loopback network michael@556: ;; michael@556: michael@556: $TTL 86400 michael@556: michael@556: @ IN SOA localhost. root.localhost. ( michael@556: 2001010101 ; SERIAL michael@556: 6H ; REFRESH: Secondaries refresh michael@556: 60M ; RETRY: Secondaries retry michael@556: 1W ; EXPIRE: Maximum TTL of data (expiry) michael@556: 1D ; MINTTL: Minimum TTL of data (expiry) michael@556: ) michael@556: michael@556: IN NS @ michael@556: IN A 127.0.0.1 michael@556: michael@556: michael@556: michael@556: ;; michael@556: ;; db.localhost.ipv4 -- zonefile for the IPv4 reverse mapping of the loopback network michael@556: ;; michael@556: michael@556: $TTL 86400 michael@556: michael@556: @ IN SOA localhost. root.localhost. ( michael@556: 2001010101 ; SERIAL michael@556: 6H ; REFRESH: Secondaries refresh michael@556: 60M ; RETRY: Secondaries retry michael@556: 1W ; EXPIRE: Maximum TTL of data (expiry) michael@556: 1D ; MINTTL: Minimum TTL of data (expiry) michael@556: ) michael@556: michael@556: IN NS @ michael@556: 1 IN PTR localhost. michael@556: michael@556: michael@556: michael@556: ;; michael@556: ;; db.localhost.ipv6 -- zonefile for the IPv6 reverse mapping of the loopback network michael@556: ;; michael@556: michael@556: $TTL 86400 michael@556: michael@556: @ IN SOA localhost. root.localhost. ( michael@556: 2001010101 ; SERIAL michael@556: 6H ; REFRESH: Secondaries refresh michael@556: 60M ; RETRY: Secondaries retry michael@556: 1W ; EXPIRE: Maximum TTL of data (expiry) michael@556: 1D ; MINTTL: Minimum TTL of data (expiry) michael@556: ) michael@556: michael@556: IN NS @ michael@556: IN PTR localhost. michael@556: michael@556: