Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. # install tinydns (djbdns) & daemontools on ubuntu 14.04
  2.  
  3. apt-get -y install daemontools
  4. apt-get -y install daemontools-run
  5. apt-get -y install ucspi-tcp
  6. apt-get -y install djbdns
  7.  
  8. mkdir -p /etc/service
  9.  
  10. # NOTE: installing daemontools-run takes care of this, else
  11. # would need to add a conf file for booting:
  12. #
  13. #cd /etc/init/
  14. #touch svscan.conf
  15. #echo "start on runlevel [2345]" > svscan.conf
  16. #echo "" >> svscan.conf
  17. #echo "expect fork" >> svscan.conf
  18. #echo "respawn" >> svscan.conf
  19. #echo "exec svscanboot" >> svscan.conf
  20.  
  21. service svscan start
  22.  
  23. ########
  24. # djbdns
  25.  
  26. adduser --no-create-home --disabled-login --shell /bin/false dnslog
  27. adduser --no-create-home --disabled-login --shell /bin/false tinydns
  28.  
  29. tinydns-conf tinydns dnslog /etc/tinydns/ EXTERNAL.IP.ADDRESS # TODO: your IP here
  30.  
  31. cd /etc/service ; ln -sf /etc/tinydns/
  32.  
  33. # svscan should find & launch the new tinydns daemon
  34.  
  35. # NOTE: to stop & start manually:
  36. # stop:
  37. # svc -d /etc/service/tinydns
  38. # start:
  39. # svc -u /etc/service/tinydns
  40.  
  41. ###
  42. # Now configure the tinydns "data" file in /etc/tinydns/root/data,
  43. # then run "make" in that directory to build the runtime data .cbd file and
  44. # restart tinydns.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement