{"id":93,"date":"2014-07-20T06:37:17","date_gmt":"2014-07-20T06:37:17","guid":{"rendered":"http:\/\/rln.d13dns.com\/?p=93"},"modified":"2014-07-20T06:37:17","modified_gmt":"2014-07-20T06:37:17","slug":"new-vps-with-centos-6-for-tinydns-secondary","status":"publish","type":"post","link":"https:\/\/randomlinuxnotes.d13.com\/?p=93","title":{"rendered":"new vps with centos 6 for tinydns secondary"},"content":{"rendered":"<pre>\nyum update -y ;\n\nvi \/etc\/sysconfig\/iptables; #configuring iptables is an exercise for the reader\niptables-restore \/etc\/sysconfig\/iptables;\n\n\/etc\/init.d\/httpd stop;\nchkconfig --del httpd;\n\n\/etc\/init.d\/sendmail stop;\nchkconfig --del sendmail;\n\n\/etc\/init.d\/xinetd stop;\nchkconfig --del xinetd;\n\n#install daemontools (djb does crazy things with symlinks - trust me when I say you want this package installed and built under \/usr\/local)\nyum install gcc -y;\ncd \/usr\/local\/src;\nwget wget http:\/\/cr.yp.to\/daemontools\/daemontools-0.76.tar.gz;\ntar zxf daemontools-0.76.tar.gz;\npushd admin\/daemontools-0.76;\nvi src\/conf-cc;# append gcc line with this: -include \/usr\/include\/errno.h ;\n.\/package\/install;\npopd;\n\n#install ucspi\nwget http:\/\/cr.yp.to\/ucspi-tcp\/ucspi-tcp-0.88.tar.gz;\ntar zxf ucspi-tcp-0.88.tar.gz;\npushd ucspi-tcp-0.88;\nvi conf-cc ;# append gcc line with this: -include \/usr\/include\/errno.h ;\nmake setup check;\npopd;\n\n#install djbdns\nwget http:\/\/cr.yp.to\/djbdns\/djbdns-1.05.tar.gz;\ntar zxf djbdns-1.05.tar.gz;\npushd djbdns-1.05;\nvi conf-cc; # append gcc line with this: -include \/usr\/include\/errno.h ;\nmake setup check;\npopd;\n\n#install a local dns server for looking up addresses\nuseradd -d \/var\/dnscache -s \/bin\/false dnscache;\nuseradd -d \/var\/dnscache -s \/bin\/false dnslog;\nrm -rf \/var\/dnscache;\ndnscache-conf dnscache dnslog \/var\/dnscache 127.0.0.1;\n\ntouch \/var\/dnscache\/root\/ip\/127.0.0.1;\nln -sf \/var\/dnscache \/service\/;\n\n#update the root nameservers that dnscache above uses\nyum install bind-utils -y;\n\n\/etc\/init.d\/named stop;\nchkconfig --del named;\n\nfor file in `dig |grep root-servers.net|awk '{ print $5 }'`;do host $file;done|grep -v IPv6|grep -v mail|grep -v pointer|awk '{ print $4 }'|sort -n &gt; \/var\/dnscache\/root\/servers\/@ ;\n\n#setup svscan\n#this next line is for centos and variants -- ubuntu doesn't seem to have an #\/etc\/inittab\nvi \/etc\/inittab # get rid of this line: SV:123456:respawn:\/command\/svscanboot\n#the next 5 lines work on centos and kin and ubuntu and kin\necho \"start on runlevel [12345]\" &gt; \/etc\/init\/svscan.conf;\necho \"respawn\" &gt;&gt; \/etc\/init\/svscan.conf;\necho \"exec \/command\/svscanboot\" &gt;&gt; \/etc\/init\/svscan.conf;\ninitctl reload-configuration;\ninitctl start svscan;\n\n#setup tinydns\nuseradd -d \/var\/tinydns -s \/bin\/false -M tinydns;\nuseradd -d \/var\/tinydns -s \/bin\/false -M tinylog;\ntinydns-conf tinydns tinydns \/var\/tinydns IP;\nln -sf \/var\/tinydns \/service\/\n# configure your replication\n# e.g. rsync over ssh triggered from the Makefile on the primary\n# exercise for the reader ...\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>yum update -y ; vi \/etc\/sysconfig\/iptables; #configuring iptables is an exercise for the reader iptables-restore \/etc\/sysconfig\/iptables; \/etc\/init.d\/httpd stop; chkconfig &#8211;del httpd; \/etc\/init.d\/sendmail stop; chkconfig &#8211;del sendmail; \/etc\/init.d\/xinetd stop; chkconfig &#8211;del xinetd; #install daemontools (djb does crazy things with symlinks &#8211; trust me when I say you want this package installed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[25,40,41,137,149],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-rln","tag-centos6","tag-djbdns","tag-dnscache","tag-tinydns","tag-vps"],"_links":{"self":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":0,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"wp:attachment":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}