Permalink
Browse files

import djbdns 1.02

  • Loading branch information...
1 parent a33f38d commit b4ab1f8519c2d1f2436c12afcd804fd28cb58e9e D. J. Bernstein committed with Sep 23, 2000
Showing with 43 additions and 19 deletions.
  1. +10 −0 CHANGES
  2. +1 −1 FILES
  3. +2 −2 README
  4. +1 −1 VERSION
  5. +2 −2 axfrdns-conf.c
  6. +12 −8 dnscache-conf.c
  7. +13 −0 dnsroots.global
  8. +2 −5 hier.c
View
@@ -286,3 +286,13 @@
ui: dns_transmit_get() does not pause after most recv() errors.
still pauses after connection-refused when udploop is 2.
version: djbdns 1.01.
+20000922
+ portability problem: Linux distributions use bash as /bin/sh;
+ bash destroys $UID. dorks. impact: dnscache and axfrdns
+ run as root. fix: envdir, then sh, then envuidgid. but
+ /bin/sh really has to stop polluting the environment.
+20000923
+ ui: install /etc/dnsroots.global. dnscache-conf tries
+ dnsroots.local, then dnsroots.global.
+ ui: no longer install home/etc/dnscache.
+ version: djbdns 1.02.
View
@@ -6,7 +6,7 @@ FILES
SYSDEPS
TARGETS
Makefile
-@
+dnsroots.global
conf-cc
conf-ld
conf-home
View
@@ -1,5 +1,5 @@
-djbdns 1.01
-20000917
+djbdns 1.02
+20000923
Copyright 2000
D. J. Bernstein
View
@@ -1 +1 @@
-djbdns 1.01
+djbdns 1.02
View
@@ -48,8 +48,8 @@ main(int argc,char **argv)
perm(0644);
start("run");
- outs("#!/bin/sh\nexec 2>&1\nexec envuidgid "); outs(user);
- outs(" envdir ./env softlimit -d250000 sh -c '\nexec tcpserver -vDRHl0 -x tcp.cdb -- \"$IP\" 53 ");
+ outs("#!/bin/sh\nexec 2>&1\nexec envdir ./env sh -c '\n exec envuidgid "); outs(user);
+ outs(" softlimit -d250000 tcpserver -vDRHl0 -x tcp.cdb -- \"$IP\" 53 ");
outs(auto_home); outs("/bin/axfrdns\n'\n");
finish();
perm(0755);
View
@@ -11,6 +11,7 @@
#include "taia.h"
#include "str.h"
#include "open.h"
+#include "error.h"
#include "readwrite.h"
#include "exit.h"
#include "auto_home.h"
@@ -87,12 +88,15 @@ main(int argc,char **argv)
if (chdir(auto_home) == -1)
strerr_die4sys(111,FATAL,"unable to switch to ",auto_home,": ");
- seed_addtime();
- fdrootservers = open_read("etc/dnscache/@");
- seed_addtime();
- if (fdrootservers == -1)
- strerr_die4sys(111,FATAL,"unable to open ",auto_home,"/etc/dnscache/@: ");
- seed_addtime();
+
+ fdrootservers = open_read("/etc/dnsroots.local");
+ if (fdrootservers == -1) {
+ if (errno != error_noent)
+ strerr_die2sys(111,FATAL,"unable to open /etc/dnsroots.local: ");
+ fdrootservers = open_read("/etc/dnsroots.global");
+ if (fdrootservers == -1)
+ strerr_die2sys(111,FATAL,"unable to open /etc/dnsroots.global: ");
+ }
init(dir,FATAL);
@@ -117,8 +121,8 @@ main(int argc,char **argv)
seed_addtime(); start("env/DATALIMIT"); outs("3000000\n"); finish();
seed_addtime(); perm(0644);
seed_addtime(); start("run");
- outs("#!/bin/sh\nexec 2>&1\nexec <seed\nexec envuidgid "); outs(user);
- outs(" envdir ./env sh -c '\nexec softlimit -o250 -d \"$DATALIMIT\" ");
+ outs("#!/bin/sh\nexec 2>&1\nexec <seed\nexec envdir ./env sh -c '\n exec envuidgid "); outs(user);
+ outs(" softlimit -o250 -d \"$DATALIMIT\" ");
outs(auto_home); outs("/bin/dnscache\n'\n"); finish();
seed_addtime(); perm(0755);
seed_addtime(); start("log/run");
View
@@ -0,0 +1,13 @@
+198.41.0.4
+128.9.0.107
+192.33.4.12
+128.8.10.90
+192.203.230.10
+192.5.5.241
+192.112.36.4
+128.63.2.53
+192.36.148.17
+198.41.0.10
+193.0.14.129
+198.32.64.12
+202.12.27.33
View
@@ -2,14 +2,11 @@
void hier()
{
+ c("/","etc","dnsroots.global",-1,-1,0644);
+
h(auto_home,-1,-1,02755);
- d(auto_home,"etc",-1,-1,02755);
- d(auto_home,"etc/dnscache",-1,-1,02755);
d(auto_home,"bin",-1,-1,02755);
- c(auto_home,"etc/dnscache","VERSION",-1,-1,0644);
- c(auto_home,"etc/dnscache","@",-1,-1,0644);
-
c(auto_home,"bin","dnscache-conf",-1,-1,0755);
c(auto_home,"bin","tinydns-conf",-1,-1,0755);
c(auto_home,"bin","walldns-conf",-1,-1,0755);

0 comments on commit b4ab1f8

Please sign in to comment.