]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/bind/bind-9.3.1/conf.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / bind / bind-9.3.1 / conf.patch
1 diff -urN bind-9.3.1.orig/conf/db.0 bind-9.3.1/conf/db.0
2 --- bind-9.3.1.orig/conf/db.0   1970-01-01 01:00:00.000000000 +0100
3 +++ bind-9.3.1/conf/db.0        2005-07-10 22:14:00.000000000 +0200
4 @@ -0,0 +1,12 @@
5 +;
6 +; BIND reverse data file for broadcast zone
7 +;
8 +$TTL   604800
9 +@      IN      SOA     localhost. root.localhost. (
10 +                             1         ; Serial
11 +                        604800         ; Refresh
12 +                         86400         ; Retry
13 +                       2419200         ; Expire
14 +                        604800 )       ; Negative Cache TTL
15 +;
16 +@      IN      NS      localhost.
17 diff -urN bind-9.3.1.orig/conf/db.127 bind-9.3.1/conf/db.127
18 --- bind-9.3.1.orig/conf/db.127 1970-01-01 01:00:00.000000000 +0100
19 +++ bind-9.3.1/conf/db.127      2005-07-10 22:14:00.000000000 +0200
20 @@ -0,0 +1,13 @@
21 +;
22 +; BIND reverse data file for local loopback interface
23 +;
24 +$TTL   604800
25 +@      IN      SOA     localhost. root.localhost. (
26 +                             1         ; Serial
27 +                        604800         ; Refresh
28 +                         86400         ; Retry
29 +                       2419200         ; Expire
30 +                        604800 )       ; Negative Cache TTL
31 +;
32 +@      IN      NS      localhost.
33 +1.0.0  IN      PTR     localhost.
34 diff -urN bind-9.3.1.orig/conf/db.empty bind-9.3.1/conf/db.empty
35 --- bind-9.3.1.orig/conf/db.empty       1970-01-01 01:00:00.000000000 +0100
36 +++ bind-9.3.1/conf/db.empty    2005-07-10 22:14:00.000000000 +0200
37 @@ -0,0 +1,14 @@
38 +; BIND reverse data file for empty rfc1918 zone
39 +;
40 +; DO NOT EDIT THIS FILE - it is used for multiple zones.
41 +; Instead, copy it, edit named.conf, and use that copy.
42 +;
43 +$TTL   86400
44 +@      IN      SOA     localhost. root.localhost. (
45 +                             1         ; Serial
46 +                        604800         ; Refresh
47 +                         86400         ; Retry
48 +                       2419200         ; Expire
49 +                         86400 )       ; Negative Cache TTL
50 +;
51 +@      IN      NS      localhost.
52 diff -urN bind-9.3.1.orig/conf/db.local bind-9.3.1/conf/db.local
53 --- bind-9.3.1.orig/conf/db.local       1970-01-01 01:00:00.000000000 +0100
54 +++ bind-9.3.1/conf/db.local    2005-07-10 22:14:00.000000000 +0200
55 @@ -0,0 +1,13 @@
56 +;
57 +; BIND data file for local loopback interface
58 +;
59 +$TTL   604800
60 +@      IN      SOA     localhost. root.localhost. (
61 +                             1         ; Serial
62 +                        604800         ; Refresh
63 +                         86400         ; Retry
64 +                       2419200         ; Expire
65 +                        604800 )       ; Negative Cache TTL
66 +;
67 +@      IN      NS      localhost.
68 +@      IN      A       127.0.0.1
69 diff -urN bind-9.3.1.orig/conf/db.root bind-9.3.1/conf/db.root
70 --- bind-9.3.1.orig/conf/db.root        1970-01-01 01:00:00.000000000 +0100
71 +++ bind-9.3.1/conf/db.root     2005-07-10 22:14:00.000000000 +0200
72 @@ -0,0 +1,45 @@
73 +
74 +; <<>> DiG 9.2.3 <<>> ns . @a.root-servers.net.
75 +;; global options:  printcmd
76 +;; Got answer:
77 +;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18944
78 +;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
79 +
80 +;; QUESTION SECTION:
81 +;.                             IN      NS
82 +
83 +;; ANSWER SECTION:
84 +.                      518400  IN      NS      A.ROOT-SERVERS.NET.
85 +.                      518400  IN      NS      B.ROOT-SERVERS.NET.
86 +.                      518400  IN      NS      C.ROOT-SERVERS.NET.
87 +.                      518400  IN      NS      D.ROOT-SERVERS.NET.
88 +.                      518400  IN      NS      E.ROOT-SERVERS.NET.
89 +.                      518400  IN      NS      F.ROOT-SERVERS.NET.
90 +.                      518400  IN      NS      G.ROOT-SERVERS.NET.
91 +.                      518400  IN      NS      H.ROOT-SERVERS.NET.
92 +.                      518400  IN      NS      I.ROOT-SERVERS.NET.
93 +.                      518400  IN      NS      J.ROOT-SERVERS.NET.
94 +.                      518400  IN      NS      K.ROOT-SERVERS.NET.
95 +.                      518400  IN      NS      L.ROOT-SERVERS.NET.
96 +.                      518400  IN      NS      M.ROOT-SERVERS.NET.
97 +
98 +;; ADDITIONAL SECTION:
99 +A.ROOT-SERVERS.NET.    3600000 IN      A       198.41.0.4
100 +B.ROOT-SERVERS.NET.    3600000 IN      A       192.228.79.201
101 +C.ROOT-SERVERS.NET.    3600000 IN      A       192.33.4.12
102 +D.ROOT-SERVERS.NET.    3600000 IN      A       128.8.10.90
103 +E.ROOT-SERVERS.NET.    3600000 IN      A       192.203.230.10
104 +F.ROOT-SERVERS.NET.    3600000 IN      A       192.5.5.241
105 +G.ROOT-SERVERS.NET.    3600000 IN      A       192.112.36.4
106 +H.ROOT-SERVERS.NET.    3600000 IN      A       128.63.2.53
107 +I.ROOT-SERVERS.NET.    3600000 IN      A       192.36.148.17
108 +J.ROOT-SERVERS.NET.    3600000 IN      A       192.58.128.30
109 +K.ROOT-SERVERS.NET.    3600000 IN      A       193.0.14.129
110 +L.ROOT-SERVERS.NET.    3600000 IN      A       198.32.64.12
111 +M.ROOT-SERVERS.NET.    3600000 IN      A       202.12.27.33
112 +
113 +;; Query time: 81 msec
114 +;; SERVER: 198.41.0.4#53(a.root-servers.net.)
115 +;; WHEN: Sun Feb  1 11:27:14 2004
116 +;; MSG SIZE  rcvd: 436
117 +
118 diff -urN bind-9.3.1.orig/conf/named.conf bind-9.3.1/conf/named.conf
119 --- bind-9.3.1.orig/conf/named.conf     1970-01-01 01:00:00.000000000 +0100
120 +++ bind-9.3.1/conf/named.conf  2005-07-10 22:33:46.000000000 +0200
121 @@ -0,0 +1,49 @@
122 +// This is the primary configuration file for the BIND DNS server named.
123 +//
124 +// If you are just adding zones, please do that in /etc/bind/named.conf.local
125 +
126 +include "/etc/bind/named.conf.options";
127 +
128 +// prime the server with knowledge of the root servers
129 +zone "." {
130 +       type hint;
131 +       file "/etc/bind/db.root";
132 +};
133 +
134 +// be authoritative for the localhost forward and reverse zones, and for
135 +// broadcast zones as per RFC 1912
136 +
137 +zone "localhost" {
138 +       type master;
139 +       file "/etc/bind/db.local";
140 +};
141 +
142 +zone "127.in-addr.arpa" {
143 +       type master;
144 +       file "/etc/bind/db.127";
145 +};
146 +
147 +zone "0.in-addr.arpa" {
148 +       type master;
149 +       file "/etc/bind/db.0";
150 +};
151 +
152 +zone "255.in-addr.arpa" {
153 +       type master;
154 +       file "/etc/bind/db.255";
155 +};
156 +
157 +// zone "com" { type delegation-only; };
158 +// zone "net" { type delegation-only; };
159 +
160 +// From the release notes:
161 +//  Because many of our users are uncomfortable receiving undelegated answers
162 +//  from root or top level domains, other than a few for whom that behaviour
163 +//  has been trusted and expected for quite some length of time, we have now
164 +//  introduced the "root-delegations-only" feature which applies delegation-only
165 +//  logic to all top level domains, and to the root domain.  An exception list
166 +//  should be specified, including "MUSEUM" and "DE", and any other top level
167 +//  domains from whom undelegated responses are expected and trusted.
168 +// root-delegation-only exclude { "DE"; "MUSEUM"; };
169 +
170 +include "/etc/bind/named.conf.local";
171 diff -urN bind-9.3.1.orig/conf/named.conf.local bind-9.3.1/conf/named.conf.local
172 --- bind-9.3.1.orig/conf/named.conf.local       1970-01-01 01:00:00.000000000 +0100
173 +++ bind-9.3.1/conf/named.conf.local    2005-07-10 22:14:06.000000000 +0200
174 @@ -0,0 +1,8 @@
175 +//
176 +// Do any local configuration here
177 +//
178 +
179 +// Consider adding the 1918 zones here, if they are not used in your
180 +// organization
181 +//include "/etc/bind/zones.rfc1918";
182 +
183 diff -urN bind-9.3.1.orig/conf/named.conf.options bind-9.3.1/conf/named.conf.options
184 --- bind-9.3.1.orig/conf/named.conf.options     1970-01-01 01:00:00.000000000 +0100
185 +++ bind-9.3.1/conf/named.conf.options  2005-07-10 22:14:06.000000000 +0200
186 @@ -0,0 +1,24 @@
187 +options {
188 +       directory "/var/cache/bind";
189 +
190 +       // If there is a firewall between you and nameservers you want
191 +       // to talk to, you might need to uncomment the query-source
192 +       // directive below.  Previous versions of BIND always asked
193 +       // questions using port 53, but BIND 8.1 and later use an unprivileged
194 +       // port by default.
195 +
196 +       // query-source address * port 53;
197 +
198 +       // If your ISP provided one or more IP addresses for stable 
199 +       // nameservers, you probably want to use them as forwarders.  
200 +       // Uncomment the following block, and insert the addresses replacing 
201 +       // the all-0's placeholder.
202 +
203 +       // forwarders {
204 +       //      0.0.0.0;
205 +       // };
206 +
207 +       auth-nxdomain no;    # conform to RFC1035
208 +
209 +};
210 +
211 diff -urN bind-9.3.1.orig/conf/zones.rfc1918 bind-9.3.1/conf/zones.rfc1918
212 --- bind-9.3.1.orig/conf/zones.rfc1918  1970-01-01 01:00:00.000000000 +0100
213 +++ bind-9.3.1/conf/zones.rfc1918       2005-07-10 22:14:10.000000000 +0200
214 @@ -0,0 +1,20 @@
215 +zone "10.in-addr.arpa"      { type master; file "/etc/bind/db.empty"; };
216
217 +zone "16.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
218 +zone "17.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
219 +zone "18.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
220 +zone "19.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
221 +zone "20.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
222 +zone "21.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
223 +zone "22.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
224 +zone "23.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
225 +zone "24.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
226 +zone "25.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
227 +zone "26.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
228 +zone "27.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
229 +zone "28.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
230 +zone "29.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
231 +zone "30.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
232 +zone "31.172.in-addr.arpa"  { type master; file "/etc/bind/db.empty"; };
233 +
234 +zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.empty"; };
235 diff -urN bind-9.3.1.orig/init.d bind-9.3.1/init.d
236 --- bind-9.3.1.orig/init.d      1970-01-01 01:00:00.000000000 +0100
237 +++ bind-9.3.1/init.d   2005-07-10 23:09:58.000000000 +0200
238 @@ -0,0 +1,63 @@
239 +#!/bin/sh
240 +
241 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
242 +
243 +# for a chrooted server: "-u bind -t /var/lib/named"
244 +# Don't modify this line, change or create /etc/default/bind9.
245 +OPTIONS=""
246 +
247 +test -f /etc/default/bind9 && . /etc/default/bind9
248 +
249 +test -x /usr/sbin/rndc || exit 0
250 +
251 +case "$1" in
252 +    start)
253 +       echo -n "Starting domain name service: named"
254 +
255 +       modprobe capability >/dev/null 2>&1 || true
256 +
257 +       # dirs under /var/run can go away on reboots.
258 +       mkdir -p /var/run/bind/run
259 +       mkdir -p /var/cache/bind
260 +       chmod 775 /var/run/bind/run
261 +       chown root:bind /var/run/bind/run >/dev/null 2>&1 || true
262 +
263 +       if [ ! -x /usr/sbin/named ]; then
264 +           echo "named binary missing - not starting"
265 +           exit 1
266 +       fi
267 +       if start-stop-daemon --start --quiet --exec /usr/sbin/named \
268 +               --pidfile /var/run/bind/run/named.pid -- $OPTIONS; then
269 +           if [ -x /sbin/resolvconf ] ; then
270 +               echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo
271 +           fi
272 +       fi
273 +       echo "."        
274 +    ;;
275 +
276 +    stop)
277 +       echo -n "Stopping domain name service: named"
278 +       if [ -x /sbin/resolvconf ]; then
279 +           /sbin/resolvconf -d lo
280 +       fi
281 +       /usr/sbin/rndc stop
282 +       echo "."        
283 +    ;;
284 +
285 +    reload)
286 +       /usr/sbin/rndc reload
287 +    ;;
288 +
289 +    restart|force-reload)
290 +       $0 stop
291 +       sleep 2
292 +       $0 start
293 +    ;;
294 +    
295 +    *)
296 +       echo "Usage: /etc/init.d/bind {start|stop|reload|restart|force-reload}" >&2
297 +       exit 1
298 +    ;;
299 +esac
300 +
301 +exit 0