1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bind/bind.txt Tue Aug 28 18:33:15 2012 +0200 1.3 @@ -0,0 +1,255 @@ 1.4 +<file name="named.conf"> 1.5 +## 1.6 +## @l_prefix@/etc/bind/named.conf -- BIND configuration 1.7 +## 1.8 + 1.9 +controls { 1.10 + unix "@l_prefix@/var/bind/named.ctl" 1.11 + perm 0600 owner @l_ruid@ group @l_rgid@ 1.12 + keys { "rndc-key"; }; 1.13 + #inet 127.0.0.1 port 953 1.14 + #allow { 127.0.0.1; } 1.15 + #keys { "rndc-key"; }; 1.16 +}; 1.17 + 1.18 +include "@l_prefix@/etc/bind/rndc.key"; 1.19 + 1.20 +logging { 1.21 + channel logfile { 1.22 + file "@l_prefix@/var/bind/named.log"; 1.23 + severity info; 1.24 + print-category yes; 1.25 + print-severity no; 1.26 + print-time yes; 1.27 + }; 1.28 + category "default" { "logfile"; }; 1.29 + category "client" { "logfile"; }; 1.30 + category "config" { "logfile"; }; 1.31 + category "database" { "logfile"; }; 1.32 + category "delegation-only" { "logfile"; }; 1.33 + category "dispatch" { "logfile"; }; 1.34 + category "dnssec" { "logfile"; }; 1.35 + category "general" { "logfile"; }; 1.36 + category "lame-servers" { "logfile"; }; 1.37 + category "network" { "logfile"; }; 1.38 + category "notify" { "logfile"; }; 1.39 + category "queries" { "logfile"; }; 1.40 + category "resolver" { "logfile"; }; 1.41 + category "security" { "logfile"; }; 1.42 + category "update" { "logfile"; }; 1.43 + category "xfer-in" { "logfile"; }; 1.44 + category "xfer-out" { "logfile"; }; 1.45 + category "unmatched" { "null"; }; 1.46 +}; 1.47 + 1.48 +options { 1.49 + pid-file "@l_prefix@/var/bind/named.pid"; 1.50 + directory "@l_prefix@/etc/bind/named.db"; 1.51 + statistics-file "@l_prefix@/var/bind/named.stats"; 1.52 + allow-query { any; }; 1.53 + allow-transfer { any; }; 1.54 + allow-recursion { 127.0.0.0/8; }; 1.55 + recursion yes; 1.56 + transfers-in 10; 1.57 + transfers-per-ns 2; 1.58 + max-transfer-time-in 120; 1.59 + transfer-format one-answer; 1.60 + cleaning-interval 60; 1.61 + interface-interval 60; 1.62 + listen-on port 53 { 127.0.0.1; }; 1.63 + #query-source address 127.0.0.1 port *; 1.64 + #transfer-source 127.0.0.1; 1.65 + #notify-source 127.0.0.1; 1.66 +}; 1.67 + 1.68 +zone "." IN { 1.69 + type hint; 1.70 + file "db.root"; 1.71 +}; 1.72 + 1.73 +zone "localhost" IN { 1.74 + type master; 1.75 + file "db.localhost"; 1.76 + notify no; 1.77 + allow-update { none; }; 1.78 + allow-transfer { any; }; 1.79 +}; 1.80 + 1.81 +zone "0.0.127.in-addr.arpa" IN { 1.82 + type master; 1.83 + file "db.localhost.ipv4"; 1.84 + notify no; 1.85 + allow-update { none; }; 1.86 + allow-transfer { any; }; 1.87 +}; 1.88 + 1.89 +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" { 1.90 + type master; 1.91 + file "db.localhost.ipv6"; 1.92 + notify no; 1.93 + allow-update { none; }; 1.94 + allow-transfer { any; }; 1.95 +}; 1.96 + 1.97 +</file> 1.98 +<file name="rndc.conf"> 1.99 +## 1.100 +## @l_prefix@/etc/bind/rndc.conf -- BIND rndc configuration 1.101 +## 1.102 + 1.103 +options { 1.104 + default-server localhost-unix; 1.105 +}; 1.106 + 1.107 +server localhost-unix { 1.108 + addresses { "@l_prefix@/var/bind/named.ctl"; }; 1.109 + key "rndc-key"; 1.110 +}; 1.111 + 1.112 +server localhost-inet { 1.113 + addresses { 127.0.0.1; }; 1.114 + port 953; 1.115 + key "rndc-key"; 1.116 +}; 1.117 + 1.118 +include "@l_prefix@/etc/bind/rndc.key"; 1.119 + 1.120 +</file> 1.121 +<file name="named.db/db.root"> 1.122 +;; 1.123 +;; db.root -- Internet Root Nameservers 1.124 +;; DO NOT EDIT, IT WAS AUTOMATICALLY CREATED ON 2011-02-06 BY db.root.sh! 1.125 +;; 1.126 + 1.127 +. 99999999 IN NS A.ROOT-SERVERS.NET. 1.128 +. 99999999 IN NS B.ROOT-SERVERS.NET. 1.129 +. 99999999 IN NS C.ROOT-SERVERS.NET. 1.130 +. 99999999 IN NS D.ROOT-SERVERS.NET. 1.131 +. 99999999 IN NS E.ROOT-SERVERS.NET. 1.132 +. 99999999 IN NS F.ROOT-SERVERS.NET. 1.133 +. 99999999 IN NS G.ROOT-SERVERS.NET. 1.134 +. 99999999 IN NS H.ROOT-SERVERS.NET. 1.135 +. 99999999 IN NS I.ROOT-SERVERS.NET. 1.136 +. 99999999 IN NS J.ROOT-SERVERS.NET. 1.137 +. 99999999 IN NS K.ROOT-SERVERS.NET. 1.138 +. 99999999 IN NS L.ROOT-SERVERS.NET. 1.139 +. 99999999 IN NS M.ROOT-SERVERS.NET. 1.140 +A.ROOT-SERVERS.NET. 99999999 IN A 198.41.0.4 1.141 +A.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:503:ba3e::2:30 1.142 +B.ROOT-SERVERS.NET. 99999999 IN A 192.228.79.201 1.143 +C.ROOT-SERVERS.NET. 99999999 IN A 192.33.4.12 1.144 +D.ROOT-SERVERS.NET. 99999999 IN A 128.8.10.90 1.145 +E.ROOT-SERVERS.NET. 99999999 IN A 192.203.230.10 1.146 +F.ROOT-SERVERS.NET. 99999999 IN A 192.5.5.241 1.147 +F.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:500:2f::f 1.148 +G.ROOT-SERVERS.NET. 99999999 IN A 192.112.36.4 1.149 +H.ROOT-SERVERS.NET. 99999999 IN A 128.63.2.53 1.150 +H.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:500:1::803f:235 1.151 +I.ROOT-SERVERS.NET. 99999999 IN A 192.36.148.17 1.152 +I.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:7fe::53 1.153 +J.ROOT-SERVERS.NET. 99999999 IN A 192.58.128.30 1.154 +J.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:503:c27::2:30 1.155 +K.ROOT-SERVERS.NET. 99999999 IN A 193.0.14.129 1.156 +K.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:7fd::1 1.157 +L.ROOT-SERVERS.NET. 99999999 IN A 199.7.83.42 1.158 +L.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:500:3::42 1.159 +M.ROOT-SERVERS.NET. 99999999 IN A 202.12.27.33 1.160 +M.ROOT-SERVERS.NET. 99999999 IN AAAA 2001:dc3::35 1.161 + 1.162 +</file> 1.163 +<file name="named.db/db.root.sh"> 1.164 +#!/bin/sh 1.165 + 1.166 +ROOTFILE=./db.root 1.167 + 1.168 +echo '@l_prefix@' | egrep '^@l_' | egrep 'prefix@$' >/dev/null 1.169 +if [ $? -eq 0 ]; then 1.170 + CURL='curl' 1.171 + DIG='dig' 1.172 +else 1.173 + CURL='@l_prefix@/bin/openpkg curl' 1.174 + DIG='@l_prefix@/bin/dig' 1.175 +fi 1.176 + 1.177 +date=`date '+%Y-%m-%d'` 1.178 +cat >$ROOTFILE <<EOT 1.179 +;; 1.180 +;; db.root -- Internet Root Nameservers 1.181 +;; DO NOT EDIT, IT WAS AUTOMATICALLY CREATED ON $date BY db.root.sh! 1.182 +;; 1.183 + 1.184 +EOT 1.185 + 1.186 +$CURL -s -L ftp://ftp.internic.net/domain/named.root >$ROOTFILE.raw 1.187 +for i in A B C D E F G H I J K L M; do 1.188 + ${DIG} @$i.ROOT-SERVERS.NET . NS >>$ROOTFILE.raw 1.189 +done 1.190 +[ -f $ROOTFILE.raw ] || exit 1 1.191 +awk <$ROOTFILE.raw ' 1.192 + /[ ]NS[ ]/ { printf("%-20s 99999999 IN NS %s\n", $1, toupper($NF)); } 1.193 + /[ ]AAAA[ ]/ { printf("%-20s 99999999 IN AAAA %s\n", toupper($1), tolower($NF)); } 1.194 + /[ ]A[ ]/ { printf("%-20s 99999999 IN A %s\n", toupper($1), tolower($NF)); } 1.195 +' |\ 1.196 +egrep -v '^;' |\ 1.197 +sort -u >>$ROOTFILE 1.198 +echo "" >>$ROOTFILE 1.199 +rm $ROOTFILE.raw 1.200 + 1.201 +</file> 1.202 +<file name="named.db/db.localhost"> 1.203 +;; 1.204 +;; db.localhost -- zonefile for the forward mapping of the loopback network 1.205 +;; 1.206 + 1.207 +$TTL 86400 1.208 + 1.209 +@ IN SOA localhost. root.localhost. ( 1.210 + 2001010101 ; SERIAL 1.211 + 6H ; REFRESH: Secondaries refresh 1.212 + 60M ; RETRY: Secondaries retry 1.213 + 1W ; EXPIRE: Maximum TTL of data (expiry) 1.214 + 1D ; MINTTL: Minimum TTL of data (expiry) 1.215 + ) 1.216 + 1.217 + IN NS @ 1.218 + IN A 127.0.0.1 1.219 + 1.220 +</file> 1.221 +<file name="named.db/db.localhost.ipv4"> 1.222 +;; 1.223 +;; db.localhost.ipv4 -- zonefile for the IPv4 reverse mapping of the loopback network 1.224 +;; 1.225 + 1.226 +$TTL 86400 1.227 + 1.228 +@ IN SOA localhost. root.localhost. ( 1.229 + 2001010101 ; SERIAL 1.230 + 6H ; REFRESH: Secondaries refresh 1.231 + 60M ; RETRY: Secondaries retry 1.232 + 1W ; EXPIRE: Maximum TTL of data (expiry) 1.233 + 1D ; MINTTL: Minimum TTL of data (expiry) 1.234 + ) 1.235 + 1.236 + IN NS @ 1.237 +1 IN PTR localhost. 1.238 + 1.239 +</file> 1.240 +<file name="named.db/db.localhost.ipv6"> 1.241 +;; 1.242 +;; db.localhost.ipv6 -- zonefile for the IPv6 reverse mapping of the loopback network 1.243 +;; 1.244 + 1.245 +$TTL 86400 1.246 + 1.247 +@ IN SOA localhost. root.localhost. ( 1.248 + 2001010101 ; SERIAL 1.249 + 6H ; REFRESH: Secondaries refresh 1.250 + 60M ; RETRY: Secondaries retry 1.251 + 1W ; EXPIRE: Maximum TTL of data (expiry) 1.252 + 1D ; MINTTL: Minimum TTL of data (expiry) 1.253 + ) 1.254 + 1.255 + IN NS @ 1.256 + IN PTR localhost. 1.257 + 1.258 +</file>