Authoritative DNS server dengan MaraDNS pada Debian Lenny

Posted on 30 May 2010 by

DNS logoDalam dunia “per-DNS-an” dikenal dua jenis server yaitu recursive/caching dan authoritative DNS server. Silahkan googling untuk informasi lebih detail mengenai keduanya. Tutorial ini hanya membahas hal-hal praktikal seputar setting authoritative DNS server dengan MaraDNS pada Debian Lenny. Karena sudah sangat banyak tutorial yang membahas tentang Bind9 sebagai DNS server, maka saya mencoba untuk membahas MaraDNS. Kenapa? 1) Lebih lightweight; 2) Lebih cepat; 3) Lebih mudah dikonfigurasi; 4) Lebih banyak pilihan lebih baik bukan? ;)

Setup yang Digunakan

  • OS: Debian Lenny
  • IP: 192.168.1.111
  • Domain: debian.local
  • GNU Make
  • GCC

Untuk IP bisa juga gunakan 127.0.0.1 jika komputer hanya standalone tidak berada di network. Kita membutuhkan make dan gcc karena MaraDNS yang ada pada debian outdated (versi 1.3) jadi perlu diupdate (versi 1.4).

Instalasi MaraDNS

1. Install maradns

# apt-get install maradns
# maradns -v
This is MaraDNS version 1.3.07.09
Compiled on a Linux system at Mon Oct 13 09:58:36 UTC 2008
For usage information, "man maradns"

2. Install gcc, libc6-dev dan make.

# apt-get install gcc libc6-dev make

3. Download versi terbaru maradns di http://www.maradns.org/download.html. Dalam contoh ini saya menggunakan versi 1.4.03.

4. Build maradns, asumsi file archive ada di directory /tmp

# cd /tmp
# tar -zxvf maradns-1.4.03.tar.gz
# cd maradns-1.4.03
# ./configure && make

5. Ganti maradns versi debian dengan versi terbaru.

# mv /usr/sbin/maradns /usr/sbin/maradns.orig
# cp /tmp/maradns-1.4.03/server/maradns /usr/sbin/
# maradns Comunque sono sempre di piu i online casino AAMS che consentono anche agli utenti Mac di poter giocare direttamente dal proprio dispositivo. -v
This Patrick detox diet drinks those sometimes when we get stuff at Borders; they come in a bottle, I think BareNaked makes them? More power to him, and I try to smile and encourage his healthy choice while gagging quietly on the online slots  inside. is MaraDNS version 1.4.03
Compiled on a Linux system at Sun May 30 03:22:54 WIT 2010
For usage information, "man maradns"

Konfigurasi MaraDNS sebagai Authoritative Name Server

1. Backup file konfigurasi original.

# cd /etc/maradns
# cp mararc mararc.orig

2. Edit file konfigurasi utama mararc.

# nano mararc

3. Ubah isinya hingga seperti berikut (ganti IP sesuai kebutuhan)

bind_address = "192.168.1.111"
chroot_dir = "/etc/maradns/zones"
maradns_uid = 104
maradns_gid = 108
maxprocs = 96

csv2 = {}
csv2["debian.local."] = "db.debian.local"

no_fingerprint = 0
default_rrany_set = 3
max_chain = 8
max_ar_chain = 1
max_total = 20

4. Buat zone file untuk domain debian.local.

# cd zones
# nano db.debian.local
debian.local. SOA debian.local. root@debian.local. /serial 7200 3600 604800 1800 ~
debian.local. NS ns1.debian.local. ~
ns1.debian.local. A 192.168.1.111 ~
debian.local. A 192.168.1.111 ~
www.debian.local. A 192.168.1.111 ~

5. Restart maradns

# /etc/init.d/maradns stop && /etc/init.d/maradns start

6. Masukkan 192.168.1.111 pada /etc/resolv.conf

# nano /etc/resolv.conf
nameserver 192.168.1.111

7. Tes dengan menggunakan perintah dig.

# dig debian.local
; <<>> DiG 9.6.1-P1 <<>> debian.local
;; global options: cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42340
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;debian.local.			IN	A

;; ANSWER SECTION:
debian.local.		86400	IN	A	192.168.1.111

;; AUTHORITY SECTION:
debian.local.		86400	IN	NS	ns1.debian.local.

;; ADDITIONAL SECTION:
ns1.debian.local.	86400	IN	A	192.168.1.111

;; Query time: 15 msec
;; SERVER: 192.168.1.111#53(192.168.1.111)
;; WHEN: Sun May 30 09:29:14 2010
;; MSG SIZE rcvd: 82

Jika muncul tampilan seperti diatas, selamat MaraDNS telah bekerja dengan baik. Selamat mencoba.

Related Post

66 Comments

Carley

2 May 2016

I purchased this book for my daughter when it first came out. She loved Tomie de27&lao#8P1a;s books, and I still love his work. Great folk tale with an important message. And, the artwork is beautiful.


Post a Comment

Your email is never shared.