Skip to main content

Install DNS Server

I chose to install djbdns because it's small, simple, and secure. All instructions are located at: http://cr.yp.to/djbdns/install.html On our installation, I had to install gcc. I used rpmdrake. When I run rpmdrake on this machine (Gateway pc, 'dizzy', it comes up and flashes forever. finally I close the small window in front, and the packages come up and things seem to work fine. Anyway, I picked gcc and it found the dependencies and installed them. But at the command 'make', I am getting the error shown below, which I got around with the instructions below: ...stuff deleted ./compile uint32_pack.c ./compile uint32_unpack.c ./makelib byte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o byte_zero.o case_diffb.o case_diffs.o case_lowerb.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o str_chr.o str_diff.o str_len.o str_rchr.o str_start.o uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o ./load auto-str buffer.a unix.a byte.a buffer.a(buffer_put.o)(.text+0x43): In function `allwrite': : undefined reference to `errno' collect2: ld returned 1 exit status make: *** [auto-str] Error 1 Workaround here: http://kerneltrap.org/node/view/1014 they mention a patch to properly define 'errno'. The patch is here: http://moni.csi.hu/pub/glibc-2.3.1/djbdns-1.05.errno.patch (Following the instructions on the former of those 2 links is probably a better idea for next time, since they listed other config steps before install!) In summary, here's what I did: - install gcc and dependencies - verify daemontools and ucspi-tcp are installed (they are in our default install) - download djbdns - unzip and untar djbdns - download that patch - run that patch command:
patch -p1 < ../djbdns-1.05.errno.patch  Then run make, etc as defined before you run make. The rest of the instructions are fine.


[root@dizzy djbdns-1.05]# make setup check

no directories got created.... i'm totally stuck...
maybe i should have used urpmi...

Comments