Membuat DNS server dengan DJBDNS

Biar nggak lupa nulis dulu… J

Pada DJBDNS intinya pada tinydns sama dns cache….

Untuk menjalankan service dari tinydns dan dnscache ikuti aja langkah berikut :

Buat folder /downloads:
# mkdir /downloads

Masuk ke direktori /downloads:
# cd /downloads

Download source djbdnsrocks:
# wget http://www.goodcleanemail.com/files/tarballs/djbdnsrocks.tar.gz

Ekstrak source djbdnsrocks.tar.gz:
# tar zxvf djbdnsrocks.tar.gz

Instalasi daemontools:
# cd /downloads/djbdnsrocks
# tar zxvf daemontools-0.76.tar.gz

Buat direktori /package, ubah mode nya, kemudian masuk ke direktori /package:
# mkdir -p /package
# chmod 1755 /package
# mv admin /package
# cd /package/

Masuk ke direktori /package/admin/daemontools-0.76/src
# cd /package/admin/daemontools-0.76/src

Melakukan patching:
# patch < /downloads/djbdnsrocks/daemontools_errnopatch

Kompilasi daemontools:
# cd /package/admin/daemontools-0.76
# ./package/install

Cek service svscan:
# ps ax | grep svscan

Instalasi ucspi-tcp:
Kompilasi ucspi-tcp:
# cd /downloads/djbdnsrocks/
# tar zxvf ucspi-tcp-0.88.tar.gz
# cd ucspi-tcp-0.88
# patch < /downloads/djbdnsrocks/ucspi-tcp_errnopatch
# make && make setup check

Instalasi djbdns:
# cd /downloads/djbdnsrocks
# tar zxvf djbdns-1.05.tar.gz
# cd djbdns-1.0
# patch < /downloads/djbdnsrocks/djbdns_errnopatch
# make && make setup check
# ./install
# ./instcheck

Membuat user tinydns, dnscache, dnslog, syncdns:
# /downloads/djbdnsrocks/scripts/add_users_rh.script

Oke sampe sini … lempeng ajakan …

Oke kita lanjut dengan pengaturan tinydns dan dnscache:

Lagi malas nulis , untuk setting tinydns disini tutorialnya:

http://cr.yp.to/djbdns/run-server.html

Configuring DNSCache

Before you continue, Its possible you may have to type rehash on your console to refresh your shell to run the next command.

# dnscache-conf dnscache dnslog /etc/dnscache 192.168.1.1
# touch /etc/dnscache/root/ip/192.168.1
# echo ‘127.0.0.1’ > /etc/dnscache/root/servers/example.local
# echo ‘127.0.0.1’ > /etc/dnscache/root/servers/1.168.192.in-addr.arpa
# ln -s /etc/dnscache /service

Now edit /etc/resolve.conf to point your server to TinyDNS:

# vi /etc/resolv.conf

Remove all the lines in /etc/resolve.conf and add the following:

nameserver 192.168.1.1

We now need to restart dnscache and tinydns like so:

# svc -t /service/tinydns/
# svc -t /service/dnscache/

J Oke.. ingat intinya pada tinydns dan dnscache… masih banyak yang belum sy explore di waktu kali ini. Yah permbuka jalan aja

Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s