Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # install tinydns (djbdns) & daemontools on ubuntu 14.04
- apt-get -y install daemontools
- apt-get -y install daemontools-run
- apt-get -y install ucspi-tcp
- apt-get -y install djbdns
- mkdir -p /etc/service
- # NOTE: installing daemontools-run takes care of this, else
- # would need to add a conf file for booting:
- #
- #cd /etc/init/
- #touch svscan.conf
- #echo "start on runlevel [2345]" > svscan.conf
- #echo "" >> svscan.conf
- #echo "expect fork" >> svscan.conf
- #echo "respawn" >> svscan.conf
- #echo "exec svscanboot" >> svscan.conf
- service svscan start
- ########
- # djbdns
- adduser --no-create-home --disabled-login --shell /bin/false dnslog
- adduser --no-create-home --disabled-login --shell /bin/false tinydns
- tinydns-conf tinydns dnslog /etc/tinydns/ EXTERNAL.IP.ADDRESS # TODO: your IP here
- cd /etc/service ; ln -sf /etc/tinydns/
- # svscan should find & launch the new tinydns daemon
- # NOTE: to stop & start manually:
- # stop:
- # svc -d /etc/service/tinydns
- # start:
- # svc -u /etc/service/tinydns
- ###
- # Now configure the tinydns "data" file in /etc/tinydns/root/data,
- # then run "make" in that directory to build the runtime data .cbd file and
- # restart tinydns.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement