Continúa nuestras novedades por e-mail

Home » » DJBDNS on Debian

DJBDNS on Debian

1.Instale o software nescessario

#apt-get install wget bzip2 rdate fetchmail
libdb3++-dev unzip zip ncftp xlispstat libarchive-zip-perl
zlib1g-dev libpopt-dev nmap openssl lynx fileutils g++
2. remova o software desnescesario
#apt-get remove lpr nfs-common portmap pidentd pcmcia-cs
pppoe pppoeconf ppp pppconfig

3.Create the following directories:
mkdir /usr/local/djb
mkdir /usr/local/djb/build
mkdir /usr/local/djb/patches

4.Get the patches:
#cd /usr/local/djb/patches

#wget http://www.thedjbway.org/patches/djb_errno_patches.tgz

#tar -xzvf djb*.tgz

5.Change directories and download the main packages:
#cd /usr/local/djb/build
#wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
#wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
#wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz

6.Extract and patch each of the three packages:

Extract and Patch ucspi:
Code:
///usr/local/djb/build/
#gunzip ucspi-tcp-0.88.tar
#tar -xf ucspi-tcp-0.88.tar
#cd ucspi-tcp-0.88

#patch -p1 < ../../patches/ucspi-tcp-0.88.errno.patch //[output from patch...] patching file error.h #patch -p1 < ../../patches/ucspi-tcp-0.88.a_record.patch //[output from patch...] patching file rblsmtpd.c #patch -p1 < ../../patches/ucspi-tcp-0.88.nobase.patch //[output from patch...] patching file rblsmtpd.c Hunk #2 succeeded at 228 (offset 38 lines). #make setup check #./install #./instcheck 7.Extract and Patch daemontools: // /usr/local/djb/build #gunzip daemontools-0.76.tar #tar -xpf daemontools-0.76.tar #rm daemontools-0.76.tar #cd admin/daemontools-0.76 #patch -p1 < ../../../patches/daemontools-0.76.errno.patch //[output from patch...] patching file src/error.h package/install 7. Extract and Patch djbdns: ///usr/local/djb/build #gunzip djbdns-1.05.tar #tar -xf djbdns-1.05.tar #cd djbdns-1.05 #patch -p1 < ../../patches/djbdns-1.05.errno.patch //[output from patch...] patching file error.h #make #make setup check #./install #./instcheck 8.Next, you'll add the necessary user accounts //create the group and users -- modify if needed groupadd -g 91 dns useradd -g 91 -u 91 -d /nonexistent -c "tinydns" -s /sbin/nologin Gtinydns useradd -g 91 -u 92 -d /nonexistent -c "tinydns" -s /sbin/nologin Gdnslog useradd -g 91 -u 93 -d /nonexistent -c "tinydns" -s /sbin/nologin Gdnscache
إذا أعجبك الموضوع اضغط هنا , أو ضع إيميلك هنا ليصلك كل جديد

0 commentaires :