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 # Source0-md5: 3147c5cd56832aa3b41955c7a51cbeb2
10 Source1: %{name}-doc.tar.gz
11 # Source1-md5: 1d6aed1a5d3d3eda3958fa3e7d808fc8
12 Source2: ftp://ftp.innominate.org/gpa/djb/%{name}-%{version}-man.tar.gz
13 # Source2-md5: 2b4e71fa4592858e4508538f78d50f61
14 Source3: http://www.sericyb.com.au/tinydns-notify
15 # NoSource3-md5: 2213bdc8c58c10cb8770b7e5b0d67aea
16 Patch0: dnscache-1.05-multiple-ip.patch
17 Patch1: http://www.fefe.de/dns/%{name}-1.05-ipv6.diff
18 # based on http://www.ohse.de/uwe/patches/djbdns-1.05-multiip.diff
19 Patch2: %{name}-1.05-multiip.diff
20 Patch3: http://iksz.hu/package/djbdns-conf/djbdns-1.05-multi_tinydns_data.patch
21 Patch4: %{name}-srv.patch
22 Patch5: %{name}-glibc.patch
23 # http://www.iecc.com/rbldns-patch.txt
24 Patch6: %{name}-rbldns_a.patch
25 # http://tinydns.org/djbdns-1.05-ignoreip.patch
26 Patch7: %{name}-ignoreip.patch
27 URL: http://cr.yp.to/djbdns.html
28 BuildRequires: rpm-perlprov
29 Requires(pre): /usr/bin/getgid
30 Requires(pre): /bin/id
31 Requires(pre): /usr/sbin/groupadd
32 Requires(pre): /usr/sbin/useradd
33 Requires(postun): /usr/sbin/userdel
34 Requires(postun): /usr/sbin/groupdel
36 Obsoletes: caching-nameserver
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 This is a set of DNS servers with security in mind. If you find a
42 security hole you can get a prize.
44 This package contains some basic DNS debugging tools and some
45 documentation. If you need a DNS server install one of the following
48 - djbdns-dnscache - a local DNS cache
49 - djbdns-tinydns - a DNS server
50 - djbdns-tinydns-notify - a tool to send NOTIFY requests
51 - djbdns-pickdns - a DNS load-balancing server
52 - djbdns-walldns - a reverse DNS wall
53 - djbdns-rbldns - an IP-address-listing DNS server
54 - djbdns-axfrdns - a DNS zone transfer server
57 Dies ist ein Satz von auf Sicherheit zielenden DNS-Servers. Man kriegt
58 ein Preis, wenn man ein Sicherheitsloch findet.
60 Dieses Paket enthält ein paar DNS-Werkzeugen und etwas Dokumentation.
61 Wenn du einen DNS-Server braucht, installe ein von den folgenden
64 - djbdns-dnscache - ein lokaler DNS-Cache
65 - djbdns-tinydns - ein DNS-Server
66 - djbdns-pickdns - ein Belastung ausgleichender DNS-Server
67 - djbdns-walldns - eine Wand Rückgekehrten DNSs
68 - djbdns-rbldns - ein IP-Adressen-Listen-DNS-Server
69 - djbdns-axfrdns - ein DNS-Zonen-Transfer-Server
72 Jest to alternatywny zestaw serwerów DNS'u, którego g³ównym celem jest
73 bezpieczeñstwo. Za znalezienie dziury w tym systemie zosta³a
74 wyznaczona nawet nagroda.
76 Ten pakiet zawiera kilka podstawowych narzêdzi DNS oraz trochê
77 dokumentacji. Je¶li potrzebujesz serwera DNS zainstaluj jeden z
78 nastêpuj±cych pakietów:
80 - djbdns-dnscache - lokalny cache DNS
81 - djbdns-tinydns - serwer DNS
82 - djbdns-tinydns-notify - narzêdzie do wysy³ania komunikatów NOTIFY
83 - djbdns-pickdns - serwer DNS do równowa¿enia obci±¿eñ
84 - djbdns-walldns - ¶ciana dla odwrotnych zapytañ DNS
85 - djbdns-rbldns - serwer DNS list adresów IP
86 - djbdns-axfrdns - serwer transferów stref DNS
89 Summary: DJB's local DNS cache
90 Summary(de): DJBs lokaler DNS-Cache
91 Summary(pl): Lokalny cache DNS od DJB
92 Group: Networking/Daemons
93 PreReq: %{name} = %{version}
94 Requires(pre): /usr/bin/getgid
95 Requires(pre): /bin/id
96 Requires(pre): /usr/sbin/groupadd
97 Requires(pre): /usr/sbin/useradd
98 Requires(postun): /usr/sbin/userdel
99 Requires(postun): /usr/sbin/groupdel
100 Requires(post): diffutils
101 Requires(post): fileutils
102 Requires(preun): daemontools
103 Requires: daemontools >= 0.70-5
106 %description dnscache
107 dnscache is a local DNS cache from the djbdns package. It accepts
108 recursive DNS queries from local clients such as web browsers and mail
109 transfer agents. It collects responses from remote DNS servers. It
110 caches the responses to save time later.
112 %description dnscache -l de
113 dnscache ist ein lokaler DNS-Cache aus dem djbdns-Paket. Es empfängt
114 rekursive DNS-Fragen von den lokalen Klienten, zum Beispiel
115 Web-Browsers und Mail-Transfer-Agenten. Es sammelt die Antworten von
116 den Fern-DNS-Servers. Es merkt sich die Antworten, um die Zeit später
119 %description dnscache -l pl
120 dnscache jest lokalnym cachem DNS z pakietu djbdns. Przyjmuje on
121 rekursywne zapytania DNS od lokalnych klientów takich, jak
122 przegl±darki WWW i agenci transferu poczty (MTA). Zbiera on odpowiedzi
123 od zdalnych serwerów DNS. Zapamiêtuje on odpowiedzi, ¿eby pó¼niej
127 Summary: DJB's DNS server
128 Summary(de): DJBs DNS-Server
129 Summary(pl): Serwer DNS od DJB
130 Group: Networking/Daemons
131 PreReq: %{name} = %{version}
132 Requires(pre): /usr/bin/getgid
133 Requires(pre): /bin/id
134 Requires(pre): /usr/sbin/groupadd
135 Requires(pre): /usr/sbin/useradd
136 Requires(postun): /usr/sbin/userdel
137 Requires(postun): /usr/sbin/groupdel
138 Requires(post): diffutils
139 Requires(preun): daemontools
140 Requires: daemontools >= 0.70-5
145 tinydns is a DNS server from the djbdns package. It accepts iterative
146 DNS queries from hosts around the Internet and responds with
147 locally-configured information.
149 %description tinydns -l de
150 tinydns ist ein DNS-Server aus dem djbdns-Paket. Es empfängt iterative
151 DNS-Fragen von dem Hosts aus allem Internet und antwortet mit den
152 lokal-konfigurierten Informationen.
154 %description tinydns -l pl
155 tinydns jest serwerem DNS z pakietu djbdns. Przyjmuje on iteracyjne
156 zapytania DNS od komputerów z ca³ego Internetu i odpowiada przy u¿yciu
157 lokalnie skonfigurowanych informacji.
159 %package tinydns-notify
160 Summary: DNS NOTIFY sending tool
161 Summary(pl): Narzêdzie do wysy³ania komunikatów DNS NOTIFY
162 Group: Networking/Daemons
164 URL: http://www.sericyb.com.au/tinydns-notify
165 PreReq: %{name} = %{version}
166 Requires: perl-modules
167 Requires: perl-Net-DNS
168 Obsoletes: tinydns-notify
170 %description tinydns-notify
171 tinydns-notify is a tool written in Perl, which extracts zones
172 and their nameservers from tinydns-data files and sends DNS NOTIFY
173 requests to nameservers listed in notify-list file.
175 %description tinydns-notify -l pl
176 tinydns-notify jest napisanym w Perlu narzêdziem, które czyta pliki
177 stref i odpowiadaj±ce im serwery nazw z plików tinydns-data, a
178 nastêpnie wysy³a ¿±dania NOTIFY do serwerów wyspecyfikowanych w pliku
182 Summary: DJB's load-balancing DNS server
183 Summary(de): DJBs Belastung ausgleichender DNS-Server
184 Summary(pl): Serwer DNS równowa¿±cy obci±¿enie od DJB
185 Group: Networking/Daemons
186 PreReq: %{name} = %{version}
187 Requires(pre): /usr/bin/getgid
188 Requires(pre): /bin/id
189 Requires(pre): /usr/sbin/groupadd
190 Requires(pre): /usr/sbin/useradd
191 Requires(postun): /usr/sbin/userdel
192 Requires(postun): /usr/sbin/groupdel
193 Requires(post): diffutils
194 Requires(preun): daemontools
195 Requires: daemontools >= 0.70-5
200 pickdns is a DNS load-balancing server from the djbdns package. It
201 accepts iterative DNS queries from hosts around the Internet and
202 responds with a dynamic selection of locally configured IP addresses
205 %description pickdns -l de
206 pickdns ist ein Belastung ausgleichender DNS-Server aus dem
207 djbdns-Paket. Es empfängt iterative DNS-Fragen von den Hosts aus allem
208 Internet und antwortet mit eine dynamische Auswahl von den
209 lokal-konfigurierten IP-Adressen mit 5-Sekunden-TTLs.
211 %description pickdns -l pl
212 pickdns jest równowa¿±cym obci±¿enie serwerem DNS z pakietu djbdns.
213 Odbiera on iteracyjne zapytania DNS od komputerów z ca³ego internetu i
214 odpowiada dynamicznym wyborem lokalnie skonfigurowanych adresów IP z
215 5-sekundowymi TTLami.
218 Summary: DJB's reverse DNS wall
219 Summary(de): DJBs Wand rückgekehrten DNSs
220 Summary(pl): ¦ciana dla odwrotnych zapytañ DNS od DJB
221 Group: Networking/Daemons
222 PreReq: %{name} = %{version}
223 Requires(pre): /usr/bin/getgid
224 Requires(pre): /bin/id
225 Requires(pre): /usr/sbin/groupadd
226 Requires(pre): /usr/sbin/useradd
227 Requires(postun): /usr/sbin/userdel
228 Requires(postun): /usr/sbin/groupdel
229 Requires(post): diffutils
230 Requires(preun): daemontools
231 Requires: daemontools >= 0.70-5
235 walldns is a reverse DNS wall from the djbdns package. It accepts
236 iterative DNS queries for in-addr.arpa domains from hosts around the
237 Internet and supplies generic responses that avoid revealing local
240 %description walldns -l de
241 walldns ist ein Wand rückgekehrten DNSs aus dem djbdns-Paket. Es
242 empfängt iterative DNS-Fragen für den in-addr.arpa-Domänen von den
243 Hosts aus allem Internet und liefert Antworte, die vermeiden
244 Informationen über die lokalen Hosts zu aufzudecken.
246 %description walldns -l pl
247 walldns jest ¶cian± dla odwrotnych zapytañ DNS z pakietu djbdns.
248 Przyjmuje ona iteracyjne zapytania DNS dla domen in-addr.arpa od
249 komputerów z ca³ego Internetu i dostarcza odpowiedzi, które unikaj±
250 ujawniania informacji o lokalnych komputerach.
253 Summary: DJB's IP-address-listing DNS server
254 Summary(de): DJBs IP-Adressen-Listen-DNS-Server
255 Summary(pl): Serwer DNS list adresów IP od DJB
256 Group: Networking/Daemons
257 PreReq: %{name} = %{version}
258 Requires(pre): /usr/bin/getgid
259 Requires(pre): /bin/id
260 Requires(pre): /usr/sbin/groupadd
261 Requires(pre): /usr/sbin/useradd
262 Requires(postun): /usr/sbin/userdel
263 Requires(postun): /usr/sbin/groupdel
264 Requires(post): diffutils
265 Requires(preun): daemontools
266 Requires: daemontools >= 0.70-5
271 rbldns is an IP-address-listing DNS server from the djbdns package. It
272 accepts iterative DNS queries from hosts around the Internet asking
273 about various IP addresses. It provides responses showing whether the
274 addresses are on a locally configured list, such as RBL or DUL.
276 %description rbldns -l de
277 rbldns ist ein IP-Adressen-Listen-DNS-Server aus dem djbdns-Paket. Es
278 empfängt iterative DNS-Fragen von den Hosts aus allem Internet
279 fragende nach verschiedene IP-Adresse. Es liefert Antworte, die zeugen
280 ob die Adresse sich auf einer lokal-konfigurierten Liste befinden, zum
281 Beispiel RBL oder DUL.
283 %description rbldns -l pl
284 rbldns jest serwerem DNS list adresów z pakietu djbdns. Przyjmuje on
285 iteracyjne zapytania DNS od komputerów z ca³ego Internetu pytaj±ce o
286 ró¿ne adresy IP. Dostarcza on odpowiedzi pokazuj±cych, czy adresy te
287 s± na lokalnie skonfigurowanej li¶cie takiej, jak RBL lub DUL.
290 Summary: DJB's DNS zone-transfer server
291 Summary(de): DJBs DNS-Zonen-Transfer-Server
292 Summary(pl): Serwer transferów stref DNS od DJB
293 Group: Networking/Daemons
294 PreReq: %{name} = %{version}
295 Requires(pre): /usr/bin/getgid
296 Requires(pre): /bin/id
297 Requires(pre): /usr/sbin/groupadd
298 Requires(pre): /usr/sbin/useradd
299 Requires(postun): /usr/sbin/userdel
300 Requires(postun): /usr/sbin/groupdel
301 Requires(preun): daemontools
302 Requires: %{name}-tinydns = %{version}
303 Requires: daemontools >= 0.70-5
309 axfrdns is a DNS zone transfer server from the djbdns package. It
310 reads a zone-transfer request in DNS-over-TCP format from its standard
311 input and responds with locally configured information.
313 %description axfrdns -l de
314 axfrdns ist ein DNS-Zonen-Transfer-Server aus dem djbdns-Paket. Es
315 liest ein Zonen-Transfer-Ersuchen im DNS-over-TCP-Format von seinem
316 standarden Eingabe und antwortet mit den lokal-konfigurierten
319 %description axfrdns -l pl
320 axfrdns jest serwerem transferów stref DNS z pakietu djbdns. Wczytuje
321 on ze standardowego wej¶cia pro¶bê o transfer strefy w formacie
322 DNS-over-TCP i odpowiada przy u¿yciu lokalnie skonfigurowanych
337 ln -s merge/djbdns/* .
340 echo %{__cc} %{rpmcflags} >conf-cc
341 echo %{_prefix} > conf-home
345 rm -rf $RPM_BUILD_ROOT
346 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_sysconfdir}}
347 install -d $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
349 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
351 install dnsroots.global $RPM_BUILD_ROOT%{_sysconfdir}
352 install axfr-get $RPM_BUILD_ROOT%{_bindir}
353 install axfrdns $RPM_BUILD_ROOT%{_bindir}
354 install axfrdns-conf $RPM_BUILD_ROOT%{_bindir}
355 install cachetest $RPM_BUILD_ROOT%{_bindir}
356 install dnscache $RPM_BUILD_ROOT%{_bindir}
357 install dnscache-conf $RPM_BUILD_ROOT%{_bindir}
358 install dnsfilter $RPM_BUILD_ROOT%{_bindir}
359 install dnsip $RPM_BUILD_ROOT%{_bindir}
360 install dnsipq $RPM_BUILD_ROOT%{_bindir}
361 install dnsmx $RPM_BUILD_ROOT%{_bindir}
362 install dnsname $RPM_BUILD_ROOT%{_bindir}
363 install dnsq $RPM_BUILD_ROOT%{_bindir}
364 install dnsqr $RPM_BUILD_ROOT%{_bindir}
365 install dnstrace $RPM_BUILD_ROOT%{_bindir}
366 install dnstxt $RPM_BUILD_ROOT%{_bindir}
367 install pickdns $RPM_BUILD_ROOT%{_bindir}
368 install pickdns-conf $RPM_BUILD_ROOT%{_bindir}
369 install pickdns-data $RPM_BUILD_ROOT%{_bindir}
370 install random-ip $RPM_BUILD_ROOT%{_bindir}
371 install rbldns $RPM_BUILD_ROOT%{_bindir}
372 install rbldns-conf $RPM_BUILD_ROOT%{_bindir}
373 install rbldns-data $RPM_BUILD_ROOT%{_bindir}
374 install rts $RPM_BUILD_ROOT%{_bindir}
375 install tinydns $RPM_BUILD_ROOT%{_bindir}
376 install tinydns-conf $RPM_BUILD_ROOT%{_bindir}
377 install tinydns-data $RPM_BUILD_ROOT%{_bindir}
378 install tinydns-edit $RPM_BUILD_ROOT%{_bindir}
379 install tinydns-get $RPM_BUILD_ROOT%{_bindir}
380 install walldns $RPM_BUILD_ROOT%{_bindir}
381 install walldns-conf $RPM_BUILD_ROOT%{_bindir}
382 install djbdns-man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
383 install djbdns-man/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
384 install djbdns-man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
388 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
389 cd $RPM_BUILD_ROOT%{_sysconfdir}/dnscache
394 echo %{_sysconfdir}/dnscache/root>env/ROOT
395 echo 127.0.0.1 >env/IP
396 echo 0.0.0.0 >env/IPSEND
397 echo 1000000 >env/CACHESIZE
398 echo 3000000 >env/DATALIMIT
404 exec envdir ./env sh -c '
405 exec envuidgid dnscache softlimit -o250 -d "\$DATALIMIT" %{_bindir}/dnscache
410 exec setuidgid dnslog multilog t ./main
414 touch root/ip/127.0.0.1
416 ln $RPM_BUILD_ROOT%{_sysconfdir}/dnsroots.global root/servers/\@
417 dd if=/dev/zero of=seed bs=128c count=1
421 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
422 cd $RPM_BUILD_ROOT%{_sysconfdir}/tinydns
428 exec setuidgid dnslog multilog t ./main
431 echo %{_sysconfdir}/tinydns/root>env/ROOT
432 echo 127.0.0.1 >env/IP
436 exec envuidgid tinydns envdir ./env softlimit -d300000 %{_bindir}/tinydns
442 exec %{_bindir}/tinydns-edit data data.new add ns \${1+"\$@"}
444 cat>root/add-childns<<___
446 exec %{_bindir}/tinydns-edit data data.new add childns \${1+"\$@"}
448 cat>root/add-host<<___
450 exec %{_bindir}/tinydns-edit data data.new add host \${1+"\$@"}
452 cat>root/add-host6<<___
454 exec %{_bindir}/tinydns-edit data data.new add host6 \${1+"\$@"}
456 cat>root/add-alias<<___
458 exec %{_bindir}/tinydns-edit data data.new add alias \${1+"\$@"}
460 cat>root/add-alias6<<___
462 exec %{_bindir}/tinydns-edit data data.new add alias6 \${1+"\$@"}
466 exec %{_bindir}/tinydns-edit data data.new add mx \${1+"\$@"}
468 cat>root/Makefile<<___
470 %{_bindir}/tinydns-data
475 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
476 cd $RPM_BUILD_ROOT%{_sysconfdir}/pickdns
482 exec setuidgid dnslog multilog t ./main
485 echo %{_sysconfdir}/pickdns/root>env/ROOT
486 echo 127.0.0.1 >env/IP
490 exec envuidgid pickdns envdir ./env softlimit -d250000 %{_bindir}/pickdns
494 cat>root/Makefile<<___
496 %{_bindir}/pickdns-data
500 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/walldns
501 cd $RPM_BUILD_ROOT%{_sysconfdir}/walldns
507 exec setuidgid dnslog multilog t ./main
510 echo %{_sysconfdir}/walldns/root>env/ROOT
511 echo 127.0.0.1 >env/IP
515 exec envuidgid walldns envdir ./env softlimit -d250000 %{_bindir}/walldns
521 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
522 cd $RPM_BUILD_ROOT%{_sysconfdir}/rbldns
528 exec setuidgid dnslog multilog t ./main
531 echo %{_sysconfdir}/rbldns/root>env/ROOT
532 echo 127.0.0.1 >env/IP
533 echo in-addr.arpa >env/BASE
537 exec envuidgid rbldns envdir ./env softlimit -d250000 %{_bindir}/rbldns
541 cat>root/Makefile<<___
543 %{_bindir}/rbldns-data
547 # !10.11.12.13:See http://bad.example.com
548 # :127.0.0.2:blacklisted"
556 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
557 cd $RPM_BUILD_ROOT%{_sysconfdir}/axfrdns
563 exec setuidgid dnslog multilog t ./main
566 echo %{_sysconfdir}/tinydns/root>env/ROOT
567 echo 127.0.0.1 >env/IP
571 exec envdir ./env sh -c '
572 exec envuidgid axfrdns softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- "\$IP" 53 %{_bindir}/axfrdns
577 tcprules tcp.cdb tcp.tmp < tcp
580 # sample line: 1.2.3.4:allow,AXFR="heaven.af.mil/3.2.1.in-addr.arpa"
584 ##### daemontools symlinks #####
585 install -d $RPM_BUILD_ROOT/service
586 cd $RPM_BUILD_ROOT/service
587 ln -s ..%{_sysconfdir}/dnscache
588 ln -s ..%{_sysconfdir}/tinydns
589 ln -s ..%{_sysconfdir}/pickdns
590 ln -s ..%{_sysconfdir}/walldns
591 ln -s ..%{_sysconfdir}/rbldns
592 ln -s ..%{_sysconfdir}/axfrdns
595 rm -rf $RPM_BUILD_ROOT
598 if [ -n "`getgid djbdns`" ]; then
599 if [ "`getgid djbdns`" != "32" ]; then
600 echo "Error: group djbdns doesn't have gid=32. Correct this before installing djbdns." 1>&2
604 /usr/sbin/groupadd -g 32 -r -f djbdns
606 if [ -n "`id -u dnslog 2>/dev/null`" ]; then
607 if [ "`id -u dnslog`" != "32" ]; then
608 echo "Error: user dnslog doesn't have uid=32. Correct this before installing djbdns." 1>&2
612 /usr/sbin/useradd -u 32 -r -d / -s /bin/false -c "djbdns User" -g djbdns dnslog 1>&2
616 if [ "$1" = "0" ]; then
617 /usr/sbin/userdel dnslog
618 /usr/sbin/groupdel djbdns
622 if [ -n "`id -u dnscache 2>/dev/null`" ]; then
623 if [ "`id -u dnscache`" != "33" ]; then
624 echo "Error: user dnscache doesn't have uid=33. Correct this before installing djbdns-dnscache." 1>&2
628 /usr/sbin/useradd -u 33 -r -d /etc/dnscache -s /bin/false -c "djbdns User" -g djbdns dnscache 1>&2
632 if [ \! -s /etc/dnscache/seed ]; then
633 dd if=/dev/urandom of=/etc/dnscache/seed bs=128c count=1
635 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
636 echo "Warning: dnscache and pickdns can't work on the same"
637 echo "IP address. You have to edit either /etc/dnscache/env/IP"
638 echo "or /etc/pickdns/env/IP."
640 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
641 echo "Warning: dnscache and rbldns can't work on the same"
642 echo "IP address. You have to edit either /etc/dnscache/env/IP"
643 echo "or /etc/rbldns/env/IP."
645 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
646 echo "Warning: dnscache and tinydns can't work on the same"
647 echo "IP address. You have to edit either /etc/dnscache/env/IP"
648 echo "or /etc/tinydns/env/IP."
650 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
651 echo "Warning: dnscache and walldns can't work on the same"
652 echo "IP address. You have to edit either /etc/dnscache/env/IP"
653 echo "or /etc/walldns/env/IP."
657 if [ "$1" = "0" ]; then
658 svc -d /service/dnscache
662 if [ "$1" = "0" ]; then
663 /usr/sbin/userdel dnscache
667 if [ -n "`id -u tinydns 2>/dev/null`" ]; then
668 if [ "`id -u tinydns`" != "34" ]; then
669 echo "Error: user tinydns doesn't have uid=34. Correct this before installing djbdns-tinydns." 1>&2
673 /usr/sbin/useradd -u 34 -r -d /etc/tinydns -s /bin/false -c "djbdns User" -g djbdns tinydns 1>&2
677 if diff -u /etc/{dnscache,tinydns}/env/IP >/dev/zero 2>&1;then
678 echo "Warning: dnscache and tinydns can't work on the same"
679 echo "IP address. You have to edit either /etc/dnscache/env/IP"
680 echo "or /etc/tinydns/env/IP."
682 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
683 echo "Warning: pickdns and tinydns can't work on the same"
684 echo "IP address. You have to edit either /etc/pickdns/env/IP"
685 echo "or /etc/tinydns/env/IP."
687 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
688 echo "Warning: rbldns and tinydns can't work on the same"
689 echo "IP address. You have to edit either /etc/rbldns/env/IP"
690 echo "or /etc/tinydns/env/IP."
692 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
693 echo "Warning: tinydns and walldns can't work on the same"
694 echo "IP address. You have to edit either /etc/tinydns/env/IP"
695 echo "or /etc/walldns/env/IP."
699 if [ "$1" = "0" ]; then
700 svc -d /service/tinydns
704 if [ "$1" = "0" ]; then
705 /usr/sbin/userdel tinydns
709 if [ -n "`id -u pickdns 2>/dev/null`" ]; then
710 if [ "`id -u pickdns`" != "35" ]; then
711 echo "Error: user pickdns doesn't have uid=35. Correct this before installing djbdns-pickdns." 1>&2
715 /usr/sbin/useradd -u 35 -r -d /etc/pickdns -s /bin/false -c "djbdns User" -g djbdns pickdns 1>&2
719 if diff -u /etc/{dnscache,pickdns}/env/IP >/dev/zero 2>&1;then
720 echo "Warning: dnscache and pickdns can't work on the same"
721 echo "IP address. You have to edit either /etc/dnscache/env/IP"
722 echo "or /etc/pickdns/env/IP."
724 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
725 echo "Warning: pickdns and rbldns can't work on the same"
726 echo "IP address. You have to edit either /etc/pickdns/env/IP"
727 echo "or /etc/rbldns/env/IP."
729 if diff -u /etc/{pick,tiny}dns/env/IP >/dev/zero 2>&1;then
730 echo "Warning: pickdns and tinydns can't work on the same"
731 echo "IP address. You have to edit either /etc/pickdns/env/IP"
732 echo "or /etc/tinydns/env/IP."
734 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
735 echo "Warning: pickdns and walldns can't work on the same"
736 echo "IP address. You have to edit either /etc/pickdns/env/IP"
737 echo "or /etc/walldns/env/IP."
741 if [ "$1" = "0" ]; then
742 svc -d /service/pickdns
746 if [ "$1" = "0" ]; then
747 /usr/sbin/userdel pickdns
751 if [ -n "`id -u walldns 2>/dev/null`" ]; then
752 if [ "`id -u walldns`" != "36" ]; then
753 echo "Error: user walldns doesn't have uid=36. Correct this before installing djbdns-walldns." 1>&2
757 /usr/sbin/useradd -u 36 -r -d /etc/walldns -s /bin/false -c "djbdns User" -g djbdns walldns 1>&2
761 if diff -u /etc/{dnscache,walldns}/env/IP >/dev/zero 2>&1;then
762 echo "Warning: dnscache and walldns can't work on the same"
763 echo "IP address. You have to edit either /etc/dnscache/env/IP"
764 echo "or /etc/walldns/env/IP."
766 if diff -u /etc/{pick,wall}dns/env/IP >/dev/zero 2>&1;then
767 echo "Warning: pickdns and walldns can't work on the same"
768 echo "IP address. You have to edit either /etc/pickdns/env/IP"
769 echo "or /etc/walldns/env/IP."
771 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
772 echo "Warning: rbldns and walldns can't work on the same"
773 echo "IP address. You have to edit either /etc/rbldns/env/IP"
774 echo "or /etc/walldns/env/IP."
776 if diff -u /etc/{tiny,wall}dns/env/IP >/dev/zero 2>&1;then
777 echo "Warning: tinydns and walldns can't work on the same"
778 echo "IP address. You have to edit either /etc/tinydns/env/IP"
779 echo "or /etc/walldns/env/IP."
783 if [ "$1" = "0" ]; then
784 svc -d /service/walldns
788 if [ "$1" = "0" ]; then
789 /usr/sbin/userdel walldns
793 if [ -n "`id -u rbldns 2>/dev/null`" ]; then
794 if [ "`id -u rbldns`" != "37" ]; then
795 echo "Error: user rbldns doesn't have uid=37. Correct this before installing djbdns-rbldns." 1>&2
799 /usr/sbin/useradd -u 37 -r -d /etc/rbldns -s /bin/false -c "djbdns User" -g djbdns rbldns 1>&2
803 if diff -u /etc/{dnscache,rbldns}/env/IP >/dev/zero 2>&1;then
804 echo "Warning: dnscache and rbldns can't work on the same"
805 echo "IP address. You have to edit either /etc/dnscache/env/IP"
806 echo "or /etc/rbldns/env/IP."
808 if diff -u /etc/{pick,rbl}dns/env/IP >/dev/zero 2>&1;then
809 echo "Warning: pickdns and rbldns can't work on the same"
810 echo "IP address. You have to edit either /etc/pickdns/env/IP"
811 echo "or /etc/rbldns/env/IP."
813 if diff -u /etc/{rbl,tiny}dns/env/IP >/dev/zero 2>&1;then
814 echo "Warning: rbldns and tinydns can't work on the same"
815 echo "IP address. You have to edit either /etc/rbldns/env/IP"
816 echo "or /etc/tinydns/env/IP."
818 if diff -u /etc/{rbl,wall}dns/env/IP >/dev/zero 2>&1;then
819 echo "Warning: rbldns and walldns can't work on the same"
820 echo "IP address. You have to edit either /etc/rbldns/env/IP"
821 echo "or /etc/walldns/env/IP."
825 if [ "$1" = "0" ]; then
826 svc -d /service/rbldns
830 if [ "$1" = "0" ]; then
831 /usr/sbin/userdel rbldns
835 if [ -n "`id -u axfrdns 2>/dev/null`" ]; then
836 if [ "`id -u axfrdns`" != "38" ]; then
837 echo "Error: user axfrdns doesn't have uid=38. Correct this before installing djbdns-axfrdns." 1>&2
841 /usr/sbin/useradd -u 38 -r -d /etc/axfrdns -s /bin/false -c "djbdns User" -g djbdns axfrdns 1>&2
845 if [ "$1" = "0" ]; then
846 svc -d /service/axfrdns
850 if [ "$1" = "0" ]; then
851 /usr/sbin/userdel axfrdns
855 %defattr(644,root,root,755)
856 %doc CHANGES TODO MULTIPLEIP TINYDNS doc/*
857 %attr(755,root,root) %{_bindir}/cachetest
858 %attr(755,root,root) %{_bindir}/dns[f-t]*
859 %attr(755,root,root) %{_bindir}/axfr-get
861 %{_mandir}/man8/axfr-get*
864 %defattr(644,root,root,755)
865 %attr(755,root,root) %{_bindir}/dnscache*
866 %config %attr(644,root,root) %{_sysconfdir}/dnsroots.global
867 %dir %attr(3755,root,root) %{_sysconfdir}/dnscache
868 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/log
869 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/dnscache/log/main
870 %attr(644,dnslog,djbdns) %{_sysconfdir}/dnscache/log/status
871 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/env
872 %config %attr(644,root,root) %{_sysconfdir}/dnscache/env/*
873 %attr(755,root,root) %{_sysconfdir}/dnscache/run
874 %attr(755,root,root) %{_sysconfdir}/dnscache/log/run
875 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root
876 %dir %attr(2755,root,root) %{_sysconfdir}/dnscache/root/*
877 %config %attr(600,root,root) %{_sysconfdir}/dnscache/root/ip/*
878 %config %attr(644,root,root) %{_sysconfdir}/dnscache/root/servers/*
879 %ghost %attr(600,root,root) %{_sysconfdir}/dnscache/seed
880 %{_mandir}/man8/dnscache*
884 %defattr(644,root,root,755)
885 %attr(755,root,root) %{_bindir}/tinydns*
886 %dir %attr(3755,root,root) %{_sysconfdir}/tinydns
887 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/log
888 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/tinydns/log/main
889 %attr(644,dnslog,djbdns) %{_sysconfdir}/tinydns/log/status
890 %attr(755,root,root) %{_sysconfdir}/tinydns/log/run
891 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/env
892 %config %attr(644,root,root) %{_sysconfdir}/tinydns/env/*
893 %attr(755,root,root) %{_sysconfdir}/tinydns/run
894 %dir %attr(2755,root,root) %{_sysconfdir}/tinydns/root
895 %attr(644,root,root) %{_sysconfdir}/tinydns/root/Makefile
896 %config %attr(644,root,root) %{_sysconfdir}/tinydns/root/data
897 %attr(755,root,root) %{_sysconfdir}/tinydns/root/add-*
898 %{_mandir}/man8/tinydns*
901 %files tinydns-notify
902 %defattr(644,root,root,755)
903 %attr(755,root,root) %{_bindir}/tinydns-notify
906 %defattr(644,root,root,755)
907 %attr(755,root,root) %{_bindir}/pickdns*
908 %dir %attr(3755,root,root) %{_sysconfdir}/pickdns
909 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/log
910 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/pickdns/log/main
911 %attr(644,dnslog,djbdns) %{_sysconfdir}/pickdns/log/status
912 %attr(755,root,root) %{_sysconfdir}/pickdns/log/run
913 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/env
914 %config %attr(644,root,root) %{_sysconfdir}/pickdns/env/*
915 %attr(755,root,root) %{_sysconfdir}/pickdns/run
916 %dir %attr(2755,root,root) %{_sysconfdir}/pickdns/root
917 %attr(644,root,root) %{_sysconfdir}/pickdns/root/Makefile
918 %config %attr(644,root,root) %{_sysconfdir}/pickdns/root/data
919 %{_mandir}/man8/pickdns*
923 %defattr(644,root,root,755)
924 %attr(755,root,root) %{_bindir}/walldns*
925 %dir %attr(3755,root,root) %{_sysconfdir}/walldns
926 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/log
927 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/walldns/log/main
928 %attr(644,dnslog,djbdns) %{_sysconfdir}/walldns/log/status
929 %attr(755,root,root) %{_sysconfdir}/walldns/log/run
930 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/env
931 %config %attr(644,root,root) %{_sysconfdir}/walldns/env/*
932 %attr(755,root,root) %{_sysconfdir}/walldns/run
933 %dir %attr(2755,root,root) %{_sysconfdir}/walldns/root
934 %{_mandir}/man8/walldns*
938 %defattr(644,root,root,755)
939 %attr(755,root,root) %{_bindir}/rbldns*
940 %dir %attr(3755,root,root) %{_sysconfdir}/rbldns
941 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/log
942 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/rbldns/log/main
943 %attr(644,dnslog,djbdns) %{_sysconfdir}/rbldns/log/status
944 %attr(755,root,root) %{_sysconfdir}/rbldns/log/run
945 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/env
946 %config %attr(644,root,root) %{_sysconfdir}/rbldns/env/*
947 %attr(755,root,root) %{_sysconfdir}/rbldns/run
948 %dir %attr(2755,root,root) %{_sysconfdir}/rbldns/root
949 %attr(644,root,root) %{_sysconfdir}/rbldns/root/Makefile
950 %config %attr(644,root,root) %{_sysconfdir}/rbldns/root/data
951 %{_mandir}/man8/rbldns*
955 %defattr(644,root,root,755)
956 %attr(755,root,root) %{_bindir}/axfrdns*
957 %dir %attr(3755,root,root) %{_sysconfdir}/axfrdns
958 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/log
959 %dir %attr(2755,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/main
960 %attr(644,dnslog,djbdns) %{_sysconfdir}/axfrdns/log/status
961 %attr(755,root,root) %{_sysconfdir}/axfrdns/log/run
962 %dir %attr(2755,root,root) %{_sysconfdir}/axfrdns/env
963 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/env/*
964 %attr(755,root,root) %{_sysconfdir}/axfrdns/run
965 %attr(644,root,root) %{_sysconfdir}/axfrdns/Makefile
966 %config %attr(644,root,root) %{_sysconfdir}/axfrdns/tcp
967 %{_mandir}/man8/axfrdns*