6 License: http://cr.yp.to/distributors.html (free to use)
7 Group: Networking/Daemons
8 Source0: http://cr.yp.to/djbdns/%{name}-%{version}.tar.gz
9 Source1: %{name}-doc.tar.gz
10 Source2: ftp://ftp.innominate.org/gpa/djb/%{name}-%{version}-man.tar.gz
11 Patch0: dnscache-1.05-multiple-ip.patch
12 Patch1: http://www.fefe.de/dns/%{name}-1.05-ipv6.diff
13 # based on http://www.ohse.de/uwe/patches/djbdns-1.05-multiip.diff
14 Patch2: %{name}-1.05-multiip.diff
15 Patch3: http://iksz.hu/package/djbdns-conf/djbdns-1.05-multi_tinydns_data.patch
16 Patch4: %{name}-srv.patch
17 URL: http://cr.yp.to/djbdns.html
18 Requires(pre): /usr/bin/getgid
19 Requires(pre): /bin/id
20 Requires(pre): /usr/sbin/groupadd
21 Requires(pre): /usr/sbin/useradd
22 Requires(postun): /usr/sbin/userdel
23 Requires(postun): /usr/sbin/groupdel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is a set of DNS servers with security in mind. If you find a
28 security hole you can get a prize.
30 This package contains some basic DNS debugging tools and some
31 documentation. If you need a DNS server install one of the following
34 - djbdns-dnscache - a local DNS cache
35 - djbdns-tinydns - a DNS server
36 - djbdns-pickdns - a DNS load-balancing server
37 - djbdns-walldns - a reverse DNS wall
38 - djbdns-rbldns - an IP-address-listing DNS server
39 - djbdns-axfrdns - a DNS zone transfer server
42 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
43 ein Preis, wenn man ein Sicherheitsloch findet.
45 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
46 Wenn du einen DNS-Server braucht, installe ein von den folgenden
49 - djbdns-dnscache - ein lokaler DNS-Cache
50 - djbdns-tinydns - ein DNS-Server
51 - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
52 - djbdns-walldns - eine Wand Rückgekehrten DNSs
53 - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
54 - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
57 Jest to alternatywny zestaw serwerów DNS'u, którego g³ównym celem jest
58 bezpieczeñstwo. Za znalezienie dziury w tym systemie zosta³a
59 wyznaczona nawet nagroda.
61 Ten pakiet zawiera kilka podstawowych narzêdzi DNS oraz trochê
62 dokumentacji. Je¶li potrzebujesz serwera DNS zainstaluj jeden z
63 nastêpuj±cych pakietów:
65 - djbdns-dnscache - lokalny cache DNS
66 - djbdns-tinydns - serwer DNS
67 - djbdns-pickdns - serwer DNS do równowa¿enia obci±¿eñ
68 - djbdns-walldns - ¶ciana dla odwrotnych zapytañ DNS
69 - djbdns-rbldns - serwer DNS list adresów IP
70 - djbdns-axfrdns - serwer transferów stref DNS
73 Summary: DJB's local DNS cache
74 Summary(de): DJBs lokaler DNS-Cache
75 Summary(pl): Lokalny cache DNS od DJB
76 Group: Networking/Daemons
77 PreReq: %{name} = %{version}
78 Requires(pre): /bin/id
79 Requires(pre): /usr/sbin/useradd
80 Requires(post): diffutils
81 Requires(post): fileutils
82 Requires(preun): daemontools
83 Requires(postun): /usr/sbin/userdel
84 Requires: daemontools >= 0.70-5
88 dnscache is a local DNS cache from the djbdns package. It accepts
89 recursive DNS queries from local clients such as web browsers and mail
90 transfer agents. It collects responses from remote DNS servers. It
91 caches the responses to save time later.
93 %description dnscache -l de
94 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
95 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
96 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
97 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
100 %description dnscache -l pl
101 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
102 rekursywne zapytania DNS od lokalnych klientów takich, jak
103 przegl±darki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
104 od zdalnych serwerów DNS. Zapamiêtuje on odpowiedzi, ¿eby pó¼niej
108 Summary: DJB's DNS server
109 Summary(de): DJBs DNS-Server
110 Summary(pl): Serwer DNS od DJB
111 Group: Networking/Daemons
112 PreReq: %{name} = %{version}
113 Requires(pre): /bin/id
114 Requires(pre): /usr/sbin/useradd
115 Requires(post): diffutils
116 Requires(preun): daemontools
117 Requires(postun): /usr/sbin/userdel
118 Requires: daemontools >= 0.70-5
123 tinydns is a DNS server from the djbdns package. It accepts iterative
124 DNS queries from hosts around the Internet and responds with
125 locally-configured information.
127 %description tinydns -l de
128 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
129 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
130 lokal-konfigurierten Informationen.
132 %description tinydns -l pl
133 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
134 zapytania DNS od komputerów z ca³ego Internetu i odpowiada przy u¿yciu
135 lokalnie skonfigurowanych informacji.
138 Summary: DJB's load-balancing DNS server
139 Summary(de): DJBs Belastung ausgleichender DNS-Server
140 Summary(pl): Serwer DNS równowa¿±cy obci±¿enie od DJB
141 Group: Networking/Daemons
142 PreReq: %{name} = %{version}
143 Requires(pre): /bin/id
144 Requires(pre): /usr/sbin/useradd
145 Requires(post): diffutils
146 Requires(preun): daemontools
147 Requires(postun): /usr/sbin/userdel
148 Requires: daemontools >= 0.70-5
153 pickdns is a DNS load-balancing server from the djbdns package. It
154 accepts iterative DNS queries from hosts around the Internet and
155 responds with a dynamic selection of locally configured IP addresses
158 %description pickdns -l de
159 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
160 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
161 Internet und antwortet mit eine dynamische Auswahl von den
162 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
164 %description pickdns -l pl
165 pickdns jest równowa¿±cym obci±¿enie serwerem DNS z pakietu djbdns.
166 Odbiera on iteracyjne zapytania DNS od komputerów z ca³ego internetu i
167 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
168 5-sekundowymi TTLami.
171 Summary: DJB's reverse DNS wall
172 Summary(de): DJBs Wand rückgekehrten DNSs
173 Summary(pl): ¦ciana dla odwrotnych zapytañ DNS od DJB
174 Group: Networking/Daemons
175 PreReq: %{name} = %{version}
176 Requires(pre): /bin/id
177 Requires(pre): /usr/sbin/useradd
178 Requires(post): diffutils
179 Requires(preun): daemontools
180 Requires(postun): /usr/sbin/userdel
181 Requires: daemontools >= 0.70-5
185 walldns is a reverse DNS wall from the djbdns package. It accepts
186 iterative DNS queries for in-addr.arpa domains from hosts around the
187 Internet and supplies generic responses that avoid revealing local
190 %description walldns -l de
191 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
192 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
193 Hosts aus allem Internet und liefert Antworte, die vermeiden
194 Informationen über die lokalen Hosts zu aufzudecken.
196 %description walldns -l pl
197 walldns jest ¶cian± dla odwrotnych zapytañ DNS z pakietu djbdns.
198 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
199 komputerów z ca³ego Internetu i dostarcza odpowiedzi, które unikaj±
200 ujawniania informacji o lokalnych komputerach.
203 Summary: DJB's IP-address-listing DNS server
204 Summary(de): DJBs IP-Adressen-Listen-DNS-Server
205 Summary(pl): Serwer DNS list adresów IP od DJB
206 Group: Networking/Daemons
207 PreReq: %{name} = %{version}
208 Requires(pre): /bin/id
209 Requires(pre): /usr/sbin/useradd
210 Requires(post): diffutils
211 Requires(preun): daemontools
212 Requires(postun): /usr/sbin/userdel
213 Requires: daemontools >= 0.70-5
218 rbldns is an IP-address-listing DNS server from the djbdns package. It
219 accepts iterative DNS queries from hosts around the Internet asking
220 about various IP addresses. It provides responses showing whether the
221 addresses are on a locally configured list, such as RBL or DUL.
223 %description rbldns -l de
224 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
225 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
226 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
227 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
228 Beispiel RBL oder DUL.
230 %description rbldns -l pl
231 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
232 iteracyjne zapytania DNS od komputerów z ca³ego Internetu pytaj±ce o
233 ró¿ne adresy IP. Dostarcza on odpowiedzi pokazuj±cych, czy adresy te
234 s± na lokalnie skonfigurowanej li¶cie takiej, jak RBL lub DUL.
237 Summary: DJB's DNS zone-transfer server
238 Summary(de): DJBs DNS-Zonen-Transfer-Server
239 Summary(pl): Serwer transferów stref DNS od DJB
240 Group: Networking/Daemons
241 PreReq: %{name} = %{version}
242 Requires(pre): /bin/id
243 Requires(pre): /usr/sbin/useradd
244 Requires(preun): daemontools
245 Requires(postun): /usr/sbin/userdel
246 Requires: %{name}-tinydns = %{version}
247 Requires: daemontools >= 0.70-5
253 axfrdns is a DNS zone transfer server from the djbdns package. It
254 reads a zone-transfer request in DNS-over-TCP format from its standard
255 input and responds with locally configured information.
257 %description axfrdns -l de
258 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
259 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
260 standarden Eingabe und antwortet mit den lokal-konfigurierten
263 %description axfrdns -l pl
264 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
265 on ze standardowego wej¶cia pro¶bê o transfer strefy w formacie
266 DNS-over-TCP i odpowiada przy u¿yciu lokalnie skonfigurowanych
278 ln -s merge/djbdns/* .
281 echo %{__cc} %{rpmcflags} >conf-cc
282 echo %{_prefix} > conf-home
286 rm -rf $RPM_BUILD_ROOT
287 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
288 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
290 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
291 install axfr-get $RPM_BUILD_ROOT%{_bindir}
292 install axfrdns $RPM_BUILD_ROOT%{_bindir}
293 install axfrdns-conf $RPM_BUILD_ROOT%{_bindir}
294 install cachetest $RPM_BUILD_ROOT%{_bindir}
295 install dnscache $RPM_BUILD_ROOT%{_bindir}
296 install dnscache-conf $RPM_BUILD_ROOT%{_bindir}
297 install dnsfilter $RPM_BUILD_ROOT%{_bindir}
298 install dnsip $RPM_BUILD_ROOT%{_bindir}
299 install dnsipq $RPM_BUILD_ROOT%{_bindir}
300 install dnsmx $RPM_BUILD_ROOT%{_bindir}
301 install dnsname $RPM_BUILD_ROOT%{_bindir}
302 install dnsq $RPM_BUILD_ROOT%{_bindir}
303 install dnsqr $RPM_BUILD_ROOT%{_bindir}
304 install dnstrace $RPM_BUILD_ROOT%{_bindir}
305 install dnstxt $RPM_BUILD_ROOT%{_bindir}
306 install pickdns $RPM_BUILD_ROOT%{_bindir}
307 install pickdns-conf $RPM_BUILD_ROOT%{_bindir}
308 install pickdns-data $RPM_BUILD_ROOT%{_bindir}
309 install random-ip $RPM_BUILD_ROOT%{_bindir}
310 install rbldns $RPM_BUILD_ROOT%{_bindir}
311 install rbldns-conf $RPM_BUILD_ROOT%{_bindir}
312 install rbldns-data $RPM_BUILD_ROOT%{_bindir}
313 install rts $RPM_BUILD_ROOT%{_bindir}
314 install tinydns $RPM_BUILD_ROOT%{_bindir}
315 install tinydns-conf $RPM_BUILD_ROOT%{_bindir}
316 install tinydns-data $RPM_BUILD_ROOT%{_bindir}
317 install tinydns-edit $RPM_BUILD_ROOT%{_bindir}
318 install tinydns-get $RPM_BUILD_ROOT%{_bindir}
319 install walldns $RPM_BUILD_ROOT%{_bindir}
320 install walldns-conf $RPM_BUILD_ROOT%{_bindir}
321 install djbdns-man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
322 install djbdns-man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
323 install djbdns-man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
327 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
328 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
333 echo %{_sysconfdir}/dnscache/root>env/ROOT
334 echo 127.0.0.1 >env/IP
335 echo 0.0.0.0 >env/IPSEND
336 echo 1000000 >env/CACHESIZE
337 echo 3000000 >env/DATALIMIT
342 exec envdir ./env sh -c '
343 exec envuidgid dnscache softlimit -o250 -d "\$DATALIMIT" %{_bindir}/dnscache
348 exec setuidgid dnslog multilog t ./main
352 touch root/ip/127.0.0.1
354 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/\@
355 dd if=/dev/zero of=seed bs=128c count=1
359 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
360 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
366 exec setuidgid dnslog multilog t ./main
369 echo %{_sysconfdir}/tinydns/root>env/ROOT
370 echo 127.0.0.1 >env/IP
374 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
380 exec %{_bindir}/tinydns-edit data data.new add ns \${1+"\$@"}
382 cat>root/add-childns<<___
384 exec %{_bindir}/tinydns-edit data data.new add childns \${1+"\$@"}
386 cat>root/add-host<<___
388 exec %{_bindir}/tinydns-edit data data.new add host \${1+"\$@"}
390 cat>root/add-host6<<___
392 exec %{_bindir}/tinydns-edit data data.new add host6 \${1+"\$@"}
394 cat>root/add-alias<<___
396 exec %{_bindir}/tinydns-edit data data.new add alias \${1+"\$@"}
398 cat>root/add-alias6<<___
400 exec %{_bindir}/tinydns-edit data data.new add alias6 \${1+"\$@"}
404 exec %{_bindir}/tinydns-edit data data.new add mx \${1+"\$@"}
406 cat>root/Makefile<<___
408 %{_bindir}/tinydns-data
413 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
414 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
420 exec setuidgid dnslog multilog t ./main
423 echo %{_sysconfdir}/pickdns/root>env/ROOT
424 echo 127.0.0.1 >env/IP
428 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
432 cat>root/Makefile<<___
434 %{_bindir}/pickdns-data
438 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/walldns
439 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
445 exec setuidgid dnslog multilog t ./main
448 echo %{_sysconfdir}/walldns/root>env/ROOT
449 echo 127.0.0.1 >env/IP
453 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
459 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
460 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
466 exec setuidgid dnslog multilog t ./main
469 echo %{_sysconfdir}/rbldns/root>env/ROOT
470 echo 127.0.0.1 >env/IP
471 echo in-addr.arpa >env/BASE
475 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
479 cat>root/Makefile<<___
481 %{_bindir}/rbldns-data
486 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
487 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
493 exec setuidgid dnslog multilog t ./main
496 echo %{_sysconfdir}/tinydns/root>env/ROOT
497 echo 127.0.0.1 >env/IP
501 exec envdir ./env sh -c '
502 exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "\$IP" 53 %{_bindir}/axfrdns
507 tcprules tcp.cdb tcp.tmp < tcp
510 # sample line: 1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
514 ##### daemontools symlinks #####
515 install -d $RPM_BUILD_ROOT/service
516 cd $RPM_BUILD_ROOT/service
517 ln -s ..%{_sysconfdir}/dnscache
518 ln -s ..%{_sysconfdir}/tinydns
519 ln -s ..%{_sysconfdir}/pickdns
520 ln -s ..%{_sysconfdir}/walldns
521 ln -s ..%{_sysconfdir}/rbldns
522 ln -s ..%{_sysconfdir}/axfrdns
525 rm -rf $RPM_BUILD_ROOT
528 if [ -n "`getgid djbdns`" ]; then
529 if [ "`getgid djbdns`" != "32" ]; then
530 echo "Error: group djbdns doesn't have gid=32. Correct this before installing djbdns." 1>&2
534 /usr/sbin/groupadd -g 32 -r -f djbdns
536 if [ -n "`id -u dnslog 2>/dev/null`" ]; then
537 if [ "`id -u dnslog`" != "32" ]; then
538 echo "Error: user dnslog doesn't have uid=32. Correct this before installing djbdns." 1>&2
542 /usr/sbin/useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog 1>&2
546 if [ "$1" = "0" ]; then
547 /usr/sbin/userdel dnslog
548 /usr/sbin/groupdel djbdns
552 if [ -n "`id -u dnscache 2>/dev/null`" ]; then
553 if [ "`id -u dnscache`" != "33" ]; then
554 echo "Error: user dnscache doesn't have uid=33. Correct this before installing djbdns-dnscache." 1>&2
558 /usr/sbin/useradd -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache 1>&2
562 if [ \! -s /etc/dnscache/seed ]; then
563 dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
565 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
566 echo "Warning: dnscache and pickdns can't work on the same"
567 echo "IP address. You have to edit either /etc/dnscache/env/IP"
568 echo "or /etc/pickdns/env/IP."
570 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
571 echo "Warning: dnscache and rbldns can't work on the same"
572 echo "IP address. You have to edit either /etc/dnscache/env/IP"
573 echo "or /etc/rbldns/env/IP."
575 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
576 echo "Warning: dnscache and tinydns can't work on the same"
577 echo "IP address. You have to edit either /etc/dnscache/env/IP"
578 echo "or /etc/tinydns/env/IP."
580 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
581 echo "Warning: dnscache and walldns can't work on the same"
582 echo "IP address. You have to edit either /etc/dnscache/env/IP"
583 echo "or /etc/walldns/env/IP."
587 if [ "$1" = "0" ]; then
588 svc -d /service/dnscache
592 if [ "$1" = "0" ]; then
593 /usr/sbin/userdel dnscache
597 if [ -n "`id -u tinydns 2>/dev/null`" ]; then
598 if [ "`id -u tinydns`" != "34" ]; then
599 echo "Error: user tinydns doesn't have uid=34. Correct this before installing djbdns-tinydns." 1>&2
603 /usr/sbin/useradd -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns 1>&2
607 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
608 echo "Warning: dnscache and tinydns can't work on the same"
609 echo "IP address. You have to edit either /etc/dnscache/env/IP"
610 echo "or /etc/tinydns/env/IP."
612 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
613 echo "Warning: pickdns and tinydns can't work on the same"
614 echo "IP address. You have to edit either /etc/pickdns/env/IP"
615 echo "or /etc/tinydns/env/IP."
617 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
618 echo "Warning: rbldns and tinydns can't work on the same"
619 echo "IP address. You have to edit either /etc/rbldns/env/IP"
620 echo "or /etc/tinydns/env/IP."
622 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
623 echo "Warning: tinydns and walldns can't work on the same"
624 echo "IP address. You have to edit either /etc/tinydns/env/IP"
625 echo "or /etc/walldns/env/IP."
629 if [ "$1" = "0" ]; then
630 svc -d /service/tinydns
634 if [ "$1" = "0" ]; then
635 /usr/sbin/userdel tinydns
639 if [ -n "`id -u pickdns 2>/dev/null`" ]; then
640 if [ "`id -u pickdns`" != "35" ]; then
641 echo "Error: user pickdns doesn't have uid=35. Correct this before installing djbdns-pickdns." 1>&2
645 /usr/sbin/useradd -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns 1>&2
649 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
650 echo "Warning: dnscache and pickdns can't work on the same"
651 echo "IP address. You have to edit either /etc/dnscache/env/IP"
652 echo "or /etc/pickdns/env/IP."
654 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
655 echo "Warning: pickdns and rbldns can't work on the same"
656 echo "IP address. You have to edit either /etc/pickdns/env/IP"
657 echo "or /etc/rbldns/env/IP."
659 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
660 echo "Warning: pickdns and tinydns can't work on the same"
661 echo "IP address. You have to edit either /etc/pickdns/env/IP"
662 echo "or /etc/tinydns/env/IP."
664 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
665 echo "Warning: pickdns and walldns can't work on the same"
666 echo "IP address. You have to edit either /etc/pickdns/env/IP"
667 echo "or /etc/walldns/env/IP."
671 if [ "$1" = "0" ]; then
672 svc -d /service/pickdns
676 if [ "$1" = "0" ]; then
677 /usr/sbin/userdel pickdns
681 if [ -n "`id -u walldns 2>/dev/null`" ]; then
682 if [ "`id -u walldns`" != "36" ]; then
683 echo "Error: user walldns doesn't have uid=36. Correct this before installing djbdns-walldns." 1>&2
687 /usr/sbin/useradd -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns 1>&2
691 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
692 echo "Warning: dnscache and walldns can't work on the same"
693 echo "IP address. You have to edit either /etc/dnscache/env/IP"
694 echo "or /etc/walldns/env/IP."
696 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
697 echo "Warning: pickdns and walldns can't work on the same"
698 echo "IP address. You have to edit either /etc/pickdns/env/IP"
699 echo "or /etc/walldns/env/IP."
701 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
702 echo "Warning: rbldns and walldns can't work on the same"
703 echo "IP address. You have to edit either /etc/rbldns/env/IP"
704 echo "or /etc/walldns/env/IP."
706 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
707 echo "Warning: tinydns and walldns can't work on the same"
708 echo "IP address. You have to edit either /etc/tinydns/env/IP"
709 echo "or /etc/walldns/env/IP."
713 if [ "$1" = "0" ]; then
714 svc -d /service/walldns
718 if [ "$1" = "0" ]; then
719 /usr/sbin/userdel walldns
723 if [ -n "`id -u rbldns 2>/dev/null`" ]; then
724 if [ "`id -u rbldns`" != "37" ]; then
725 echo "Error: user rbldns doesn't have uid=37. Correct this before installing djbdns-rbldns." 1>&2
729 /usr/sbin/useradd -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns 1>&2
733 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
734 echo "Warning: dnscache and rbldns can't work on the same"
735 echo "IP address. You have to edit either /etc/dnscache/env/IP"
736 echo "or /etc/rbldns/env/IP."
738 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
739 echo "Warning: pickdns and rbldns can't work on the same"
740 echo "IP address. You have to edit either /etc/pickdns/env/IP"
741 echo "or /etc/rbldns/env/IP."
743 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
744 echo "Warning: rbldns and tinydns can't work on the same"
745 echo "IP address. You have to edit either /etc/rbldns/env/IP"
746 echo "or /etc/tinydns/env/IP."
748 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
749 echo "Warning: rbldns and walldns can't work on the same"
750 echo "IP address. You have to edit either /etc/rbldns/env/IP"
751 echo "or /etc/walldns/env/IP."
755 if [ "$1" = "0" ]; then
756 svc -d /service/rbldns
760 if [ "$1" = "0" ]; then
761 /usr/sbin/userdel rbldns
765 if [ -n "`id -u axfrdns 2>/dev/null`" ]; then
766 if [ "`id -u axfrdns`" != "38" ]; then
767 echo "Error: user axfrdns doesn't have uid=38. Correct this before installing djbdns-axfrdns." 1>&2
771 /usr/sbin/useradd -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns 1>&2
775 if [ "$1" = "0" ]; then
776 svc -d /service/axfrdns
780 if [ "$1" = "0" ]; then
781 /usr/sbin/userdel axfrdns
785 %defattr(644,root,root,755)
786 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
787 %attr(755,root,root) %{_bindir}/cachetest
788 %attr(755,root,root) %{_bindir}/dns[f-t]*
789 %attr(755,root,root) %{_bindir}/axfr-get
791 %{_mandir}/man8/axfr-get*
794 %defattr(644,root,root,755)
795 %attr(755,root,root) %{_bindir}/dnscache*
796 %config %attr(644,root,root) %{_sysconfdir}/dnsroots.global
797 %dir %attr(3755,root,root) %{_sysconfdir}/dnscache
798 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/log
799 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/dnscache/log/main
800 %attr(644,dnslog,djbdns) %{_sysconfdir}/dnscache/log/status
801 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
802 %config %attr(644,root,root) %{_sysconfdir}/dnscache/env/*
803 %attr(755,root,root) %{_sysconfdir}/dnscache/run
804 %attr(755,root,root) %{_sysconfdir}/dnscache/log/run
805 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root
806 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root/*
807 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
808 %config %attr(644,root,root) %{_sysconfdir}/dnscache/root/servers/*
809 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
810 %{_mandir}/man8/dnscache*
814 %defattr(644,root,root,755)
815 %attr(755,root,root) %{_bindir}/tinydns*
816 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
817 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/log
818 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/tinydns/log/main
819 %attr(644,dnslog,djbdns) %{_sysconfdir}/tinydns/log/status
820 %attr(755,root,root) %{_sysconfdir}/tinydns/log/run
821 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
822 %config %attr(644,root,root) %{_sysconfdir}/tinydns/env/*
823 %attr(755,root,root) %{_sysconfdir}/tinydns/run
824 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
825 %attr(644,root,root) %{_sysconfdir}/tinydns/root/Makefile
826 %config %attr(644,root,root) %{_sysconfdir}/tinydns/root/data
827 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
828 %{_mandir}/man8/tinydns*
832 %defattr(644,root,root,755)
833 %attr(755,root,root) %{_bindir}/pickdns*
834 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
835 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/log
836 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/pickdns/log/main
837 %attr(644,dnslog,djbdns) %{_sysconfdir}/pickdns/log/status
838 %attr(755,root,root) %{_sysconfdir}/pickdns/log/run
839 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
840 %config %attr(644,root,root) %{_sysconfdir}/pickdns/env/*
841 %attr(755,root,root) %{_sysconfdir}/pickdns/run
842 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
843 %attr(644,root,root) %{_sysconfdir}/pickdns/root/Makefile
844 %config %attr(644,root,root) %{_sysconfdir}/pickdns/root/data
845 %{_mandir}/man8/pickdns*
849 %defattr(644,root,root,755)
850 %attr(755,root,root) %{_bindir}/walldns*
851 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
852 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/log
853 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/walldns/log/main
854 %attr(644,dnslog,djbdns) %{_sysconfdir}/walldns/log/status
855 %attr(755,root,root) %{_sysconfdir}/walldns/log/run
856 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
857 %config %attr(644,root,root) %{_sysconfdir}/walldns/env/*
858 %attr(755,root,root) %{_sysconfdir}/walldns/run
859 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
860 %{_mandir}/man8/walldns*
864 %defattr(644,root,root,755)
865 %attr(755,root,root) %{_bindir}/rbldns*
866 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
867 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/log
868 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/rbldns/log/main
869 %attr(644,dnslog,djbdns) %{_sysconfdir}/rbldns/log/status
870 %attr(755,root,root) %{_sysconfdir}/rbldns/log/run
871 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
872 %config %attr(644,root,root) %{_sysconfdir}/rbldns/env/*
873 %attr(755,root,root) %{_sysconfdir}/rbldns/run
874 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
875 %attr(644,root,root) %{_sysconfdir}/rbldns/root/Makefile
876 %config %attr(644,root,root) %{_sysconfdir}/rbldns/root/data
877 %{_mandir}/man8/rbldns*
881 %defattr(644,root,root,755)
882 %attr(755,root,root) %{_bindir}/axfrdns*
883 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
884 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/log
885 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/main
886 %attr(644,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/status
887 %attr(755,root,root) %{_sysconfdir}/axfrdns/log/run
888 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
889 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/env/*
890 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
891 %attr(644,root,root) %{_sysconfdir}/axfrdns/Makefile
892 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/tcp
893 %{_mandir}/man8/axfrdns*