You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
229 lines
6.7 KiB
229 lines
6.7 KiB
<file name="named.conf"> |
|
## |
|
## @l_prefix@/etc/bind/named.conf -- BIND configuration |
|
## |
|
|
|
controls { |
|
inet 127.0.0.1 port 953 |
|
allow { 127.0.0.1; } |
|
keys { "rndc-key"; }; |
|
}; |
|
|
|
include "@l_prefix@/etc/bind/rndc.key"; |
|
|
|
logging { |
|
channel logfile { |
|
file "@l_prefix@/var/bind/named.log"; |
|
severity info; |
|
print-category yes; |
|
print-severity no; |
|
print-time yes; |
|
}; |
|
category "default" { "logfile"; }; |
|
category "general" { "logfile"; }; |
|
category "security" { "logfile"; }; |
|
category "config" { "logfile"; }; |
|
category "queries" { "logfile"; }; |
|
category "update" { "logfile"; }; |
|
category "notify" { "logfile"; }; |
|
category "database" { "logfile"; }; |
|
category "dnssec" { "logfile"; }; |
|
category "resolver" { "logfile"; }; |
|
category "xfer-in" { "logfile"; }; |
|
category "xfer-out" { "logfile"; }; |
|
category "dispatch" { "logfile"; }; |
|
category "lame-servers" { "logfile"; }; |
|
category "delegation-only" { "logfile"; }; |
|
}; |
|
|
|
options { |
|
pid-file "@l_prefix@/var/bind/named.pid"; |
|
directory "@l_prefix@/etc/bind/named.db"; |
|
statistics-file "@l_prefix@/var/bind/named.stats"; |
|
allow-query { any; }; |
|
allow-transfer { any; }; |
|
transfers-in 10; |
|
transfers-per-ns 2; |
|
max-transfer-time-in 120; |
|
transfer-format one-answer; |
|
cleaning-interval 60; |
|
interface-interval 60; |
|
listen-on port 53 { 127.0.0.1; }; |
|
#query-source address 127.0.0.1 port *; |
|
#transfer-source 127.0.0.1; |
|
#notify-source 127.0.0.1; |
|
}; |
|
|
|
zone "." IN { |
|
type hint; |
|
file "db.root"; |
|
}; |
|
|
|
zone "localhost" IN { |
|
type master; |
|
file "db.localhost"; |
|
notify no; |
|
allow-update { none; }; |
|
allow-transfer { any; }; |
|
}; |
|
|
|
zone "0.0.127.in-addr.arpa" IN { |
|
type master; |
|
file "db.localhost.ipv4"; |
|
notify no; |
|
allow-update { none; }; |
|
allow-transfer { any; }; |
|
}; |
|
|
|
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" { |
|
type master; |
|
file "db.localhost.ipv6"; |
|
notify no; |
|
allow-update { none; }; |
|
allow-transfer { any; }; |
|
}; |
|
|
|
</file> |
|
<file name="rndc.conf"> |
|
## |
|
## @l_prefix@/etc/bind/rndc.conf -- BIND rndc configuration |
|
## |
|
|
|
options { |
|
default-server 127.0.0.1; |
|
default-port 953; |
|
default-key "rndc-key"; |
|
}; |
|
|
|
server localhost { |
|
key "rndc-key"; |
|
}; |
|
|
|
include "@l_prefix@/etc/bind/rndc.key"; |
|
|
|
</file> |
|
<file name="named.db/db.root"> |
|
;; |
|
;; db.root -- Internet Root Nameservers |
|
;; DO NOT EDIT, IT WAS AUTOMATICALLY CREATED ON 2007-10-05 BY db.root.sh! |
|
;; |
|
|
|
. 99999999 IN NS A.ROOT-SERVERS.NET. |
|
. 99999999 IN NS B.ROOT-SERVERS.NET. |
|
. 99999999 IN NS C.ROOT-SERVERS.NET. |
|
. 99999999 IN NS D.ROOT-SERVERS.NET. |
|
. 99999999 IN NS E.ROOT-SERVERS.NET. |
|
. 99999999 IN NS F.ROOT-SERVERS.NET. |
|
. 99999999 IN NS G.ROOT-SERVERS.NET. |
|
. 99999999 IN NS H.ROOT-SERVERS.NET. |
|
. 99999999 IN NS I.ROOT-SERVERS.NET. |
|
. 99999999 IN NS J.ROOT-SERVERS.NET. |
|
. 99999999 IN NS K.ROOT-SERVERS.NET. |
|
. 99999999 IN NS L.ROOT-SERVERS.NET. |
|
. 99999999 IN NS M.ROOT-SERVERS.NET. |
|
A.ROOT-SERVERS.NET. 99999999 IN A 198.41.0.4 |
|
B.ROOT-SERVERS.NET. 99999999 IN A 192.228.79.201 |
|
C.ROOT-SERVERS.NET. 99999999 IN A 192.33.4.12 |
|
D.ROOT-SERVERS.NET. 99999999 IN A 128.8.10.90 |
|
E.ROOT-SERVERS.NET. 99999999 IN A 192.203.230.10 |
|
F.ROOT-SERVERS.NET. 99999999 IN A 192.5.5.241 |
|
G.ROOT-SERVERS.NET. 99999999 IN A 192.112.36.4 |
|
H.ROOT-SERVERS.NET. 99999999 IN A 128.63.2.53 |
|
I.ROOT-SERVERS.NET. 99999999 IN A 192.36.148.17 |
|
J.ROOT-SERVERS.NET. 99999999 IN A 192.58.128.30 |
|
K.ROOT-SERVERS.NET. 99999999 IN A 193.0.14.129 |
|
L.ROOT-SERVERS.NET. 99999999 IN A 198.32.64.12 |
|
M.ROOT-SERVERS.NET. 99999999 IN A 202.12.27.33 |
|
|
|
</file> |
|
<file name="named.db/db.root.sh"> |
|
#!/bin/sh |
|
|
|
ROOTFILE=./db.root |
|
|
|
echo '@l_prefix@' | egrep '^@l_' | egrep 'prefix@$' >/dev/null |
|
if [ $? -eq 0 ]; then |
|
DIG='dig' |
|
else |
|
DIG='@l_prefix@/bin/dig' |
|
fi |
|
|
|
date=`date '+%Y-%m-%d'` |
|
cat >$ROOTFILE <<EOT |
|
;; |
|
;; db.root -- Internet Root Nameservers |
|
;; DO NOT EDIT, IT WAS AUTOMATICALLY CREATED ON $date BY db.root.sh! |
|
;; |
|
|
|
EOT |
|
for i in A B C D E F G H I J K L M; do |
|
${DIG} @$i.ROOT-SERVERS.NET . NS >$ROOTFILE.raw && break |
|
done |
|
[ -f $ROOTFILE.raw ] || exit 1 |
|
awk <$ROOTFILE.raw ' |
|
/IN[ ]NS/ { printf("%-20s 99999999 IN NS %s\n", $1, $NF); } |
|
/IN[ ]A/ { printf("%-20s 99999999 IN A %s\n", $1, $NF); } |
|
' |\ |
|
egrep -v '^;' |\ |
|
sort >>$ROOTFILE |
|
echo "" >>$ROOTFILE |
|
rm $ROOTFILE.raw |
|
|
|
</file> |
|
<file name="named.db/db.localhost"> |
|
;; |
|
;; db.localhost -- zonefile for the forward mapping of the loopback network |
|
;; |
|
|
|
$TTL 86400 |
|
|
|
@ IN SOA localhost. root.localhost. ( |
|
2001010101 ; SERIAL |
|
6H ; REFRESH: Secondaries refresh |
|
60M ; RETRY: Secondaries retry |
|
1W ; EXPIRE: Maximum TTL of data (expiry) |
|
1D ; MINTTL: Minimum TTL of data (expiry) |
|
) |
|
|
|
IN NS @ |
|
IN A 127.0.0.1 |
|
|
|
</file> |
|
<file name="named.db/db.localhost.ipv4"> |
|
;; |
|
;; db.localhost.ipv4 -- zonefile for the IPv4 reverse mapping of the loopback network |
|
;; |
|
|
|
$TTL 86400 |
|
|
|
@ IN SOA localhost. root.localhost. ( |
|
2001010101 ; SERIAL |
|
6H ; REFRESH: Secondaries refresh |
|
60M ; RETRY: Secondaries retry |
|
1W ; EXPIRE: Maximum TTL of data (expiry) |
|
1D ; MINTTL: Minimum TTL of data (expiry) |
|
) |
|
|
|
IN NS @ |
|
1 IN PTR localhost. |
|
|
|
</file> |
|
<file name="named.db/db.localhost.ipv6"> |
|
;; |
|
;; db.localhost.ipv6 -- zonefile for the IPv6 reverse mapping of the loopback network |
|
;; |
|
|
|
$TTL 86400 |
|
|
|
@ IN SOA localhost. root.localhost. ( |
|
2001010101 ; SERIAL |
|
6H ; REFRESH: Secondaries refresh |
|
60M ; RETRY: Secondaries retry |
|
1W ; EXPIRE: Maximum TTL of data (expiry) |
|
1D ; MINTTL: Minimum TTL of data (expiry) |
|
) |
|
|
|
IN NS @ |
|
IN PTR localhost. |
|
|
|
</file>
|
|
|