mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
net/bind: Re-import package net/bind from oldpackages.
Signed-off-by: Noah Meyerhans <noahm@debian.org>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
;
|
||||
; BIND reverse data file for broadcast zone
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA localhost. root.localhost. (
|
||||
1 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS localhost.
|
||||
@@ -0,0 +1,13 @@
|
||||
;
|
||||
; BIND reverse data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA localhost. root.localhost. (
|
||||
1 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS localhost.
|
||||
1.0.0 IN PTR localhost.
|
||||
@@ -0,0 +1,12 @@
|
||||
;
|
||||
; BIND reverse data file for broadcast zone
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA localhost. root.localhost. (
|
||||
1 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS localhost.
|
||||
@@ -0,0 +1,13 @@
|
||||
;
|
||||
; BIND data file for local loopback interface
|
||||
;
|
||||
$TTL 604800
|
||||
@ IN SOA localhost. root.localhost. (
|
||||
1 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
604800 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS localhost.
|
||||
@ IN A 127.0.0.1
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
; <<>> DiG 9.2.3 <<>> ns . @a.root-servers.net.
|
||||
;; global options: printcmd
|
||||
;; Got answer:
|
||||
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18944
|
||||
;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
|
||||
|
||||
;; QUESTION SECTION:
|
||||
;. IN NS
|
||||
|
||||
;; ANSWER SECTION:
|
||||
. 518400 IN NS A.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS B.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS C.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS D.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS E.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS F.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS G.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS H.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS I.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS J.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS K.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS L.ROOT-SERVERS.NET.
|
||||
. 518400 IN NS M.ROOT-SERVERS.NET.
|
||||
|
||||
;; ADDITIONAL SECTION:
|
||||
A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4
|
||||
B.ROOT-SERVERS.NET. 3600000 IN A 192.228.79.201
|
||||
C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12
|
||||
D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90
|
||||
E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10
|
||||
F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241
|
||||
G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4
|
||||
H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53
|
||||
I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17
|
||||
J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30
|
||||
K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129
|
||||
L.ROOT-SERVERS.NET. 3600000 IN A 199.7.83.42
|
||||
M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33
|
||||
|
||||
;; Query time: 81 msec
|
||||
;; SERVER: 198.41.0.4#53(a.root-servers.net.)
|
||||
;; WHEN: Sun Feb 1 11:27:14 2004
|
||||
;; MSG SIZE rcvd: 436
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
// This is the primary configuration file for the BIND DNS server named.
|
||||
|
||||
options {
|
||||
directory "/tmp";
|
||||
|
||||
// If your ISP provided one or more IP addresses for stable
|
||||
// nameservers, you probably want to use them as forwarders.
|
||||
// Uncomment the following block, and insert the addresses replacing
|
||||
// the all-0's placeholder.
|
||||
|
||||
// forwarders {
|
||||
// 0.0.0.0;
|
||||
// };
|
||||
|
||||
auth-nxdomain no; # conform to RFC1035
|
||||
};
|
||||
|
||||
// prime the server with knowledge of the root servers
|
||||
zone "." {
|
||||
type hint;
|
||||
file "/etc/bind/db.root";
|
||||
};
|
||||
|
||||
// be authoritative for the localhost forward and reverse zones, and for
|
||||
// broadcast zones as per RFC 1912
|
||||
|
||||
zone "localhost" {
|
||||
type master;
|
||||
file "/etc/bind/db.local";
|
||||
};
|
||||
|
||||
zone "127.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/db.127";
|
||||
};
|
||||
|
||||
zone "0.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/db.0";
|
||||
};
|
||||
|
||||
zone "255.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/db.255";
|
||||
};
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
START=50
|
||||
|
||||
config_file=/etc/bind/named.conf
|
||||
pid_file=/var/run/named/named.pid
|
||||
|
||||
start() {
|
||||
if [ -e $pid_file ]
|
||||
then
|
||||
echo " named already running with PID `cat $pid_file`"
|
||||
return 1
|
||||
fi
|
||||
echo Starting isc-bind
|
||||
|
||||
/usr/sbin/named -c $config_file
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo " isc-bind failed to start"
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo "Stopping isc-bind"
|
||||
if [ -e $pid_file ]
|
||||
then
|
||||
kill `cat $pid_file`
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo " PID " `cat $pid_file` not found
|
||||
echo " Is the named server running?"
|
||||
fi
|
||||
|
||||
rm -f $pid_file
|
||||
|
||||
else
|
||||
echo " $pid_file not found"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user