:: djbdns on Linux Debian

1 min read

:: What is djbdns
The djbdns software package is a DNS implementation created by Daniel J. Bernstein due to his frustrations with repeated BIND security holes. – wikipedia

:: Installing dependency

# aptitude install daemontools daemontools-run ucspi-tcp

:: Installing djbdns / tinydns on debian

# mkdir packages
# cd packages/
# wget //cr.yp.to/djbdns/djbdns-1.05.tar.gz
# tar -xzf djbdns-1.05.tar.gz
# cd djbdns-1.05/
# echo gcc -O2 -include /usr/include/errno.h > conf-cc
# make
# make setup check

:: running DNS Server

# useradd Gtinydns
# useradd Gdnslog
# tinydns-conf Gtinydns Gdnslog /etc/tinydns 10.100.100.80
# mkdir /etc/service/
# ln -s /etc/tinydns /etc/service/tinydns
# svstat /etc/service/tinydns

:: delegation

# cd /etc/service/tinydns/root/
# ./add-ns mee.com 10.100.100.80
# ./add-ns 100.100.10.in-addr.arpa 10.100.100.80
# make

:: add DNS record
+command line

# cd /etc/service/tinydns/root
# ./add-host mee.com 10.100.100.80
# ./add-alias www.mee.com 10.100.100.80
# ./add-alias ftp.mee.com 10.100.100.80
# ./add-mx mail.mee.com 10.100.100.80
# make

+edit data files

# cd /etc/service/tinydns/root
# vi data
### mee.com
#################
.mee.com:10.100.100.80:ns.mee.com:259200
.100.100.10.in-addr.arpa:10.100.100.80:a:259200
=mee.com:10.100.100.80:86400
+www.mee.com:10.100.100.80:86400
+ftp.mee.com:10.100.100.80:86400
@mail.mee.com:10.100.100.80:a::86400

### jonno.com
##############
.jonno.com::ns1.mee.com
.jonno.com::ns2.mee.com
@jonno.com::mail.jonno.com::86400
+jonno.com:10.100.100.80:86400
+www.jonno.com:10.100.100.80:86400
+mail.jonno.com:10.100.100.80:86400
+ftp.jonno.com:10.100.100.80:86400

# make

:: Checking DNS records
+A record

# tinydns-get a www.mee.com
1 www.mee.com:
78 bytes, 1+1+1+1 records, response, authoritative, noerror
query: 1 www.mee.com
answer: www.mee.com 86400 A 10.100.100.80
authority: mee.com 259200 NS ns.mee.com
additional: ns.mee.com 259200 A 10.100.100.80

+Ptr record

# tinydns-get ptr 100.100.10.in-addr.arpa.
12 100.100.10.in-addr.arpa:
93 bytes, 1+0+1+0 records, response, authoritative, noerror
query: 12 100.100.10.in-addr.arpa
authority: 100.100.10.in-addr.arpa 2560 SOA a.ns.100.100.10.in-addr.arpa hostmaster.100.100.10.in-addr.arpa 1311318815 16384 2048 1048576 2560

Do not use nslookup to test your DNS servers.

:: Links
+ Google
+ djbdns
+ Cyberciti

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *