Slackware 13 : Simple DNS with bind

This item was filled under [ DNS, Linux, Networking, slackware ]

buat mas yoyok nih… yang lagi demen di alun-alun tengah malem… (girlkiss)

proses sebelome coba cek disini ya.. http://bayu.blitar.org/index.php/slackware-13-slackpkg-ke-kambing/

langsung aja, install bind

root@slacky:~# slackpkg install bind

trus muncul kek ini :

installbind

trus

installbind2

ok, lanjut ke konfigurasi nya.

letak konfigurasi bind untuk dns server di slackware ada di /etc/, file nya named.conf (/etc/named.conf)

root@slacky:/# ls -la /etc |grep named
-rw-r–r–  1 root root      681 2009-07-30 04:22 named.conf

secara default, dns server ini (bind) sudah isa langsung di gunakan, meskipun hanya di localhost saja. simple bukan ?

untuk mengaktifkan service ato layanan dns server simple ini di slackware, agar tiap kali booting langsung aktif, jalankan perintah

pkgtool > Setup > services > rc.bind > ok

tes dns server nya

root@slacky:/# /etc/rc.d/rc.bind
usage /etc/rc.d/rc.bind start|stop|reload|restart|status
root@slacky:/#

trus

root@slacky:/# /etc/rc.d/rc.bind start
Starting BIND:  /usr/sbin/named
root@slacky:/#

cek port nya

root@slacky:/# netstat -pln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:37              0.0.0.0:*               LISTEN      2600/inetd
tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN      2600/inetd
tcp        0      0 192.168.1.2:53          0.0.0.0:*               LISTEN      7650/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      7650/named
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2607/sshd
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      7650/named
tcp6       0      0 :::22                   :::*                    LISTEN      2607/sshd
tcp6       0      0 ::1:953                 :::*                    LISTEN      7650/named
udp        0      0 0.0.0.0:512             0.0.0.0:*                           2600/inetd
udp        0      0 0.0.0.0:37              0.0.0.0:*                           2600/inetd
udp        0      0 192.168.1.2:53          0.0.0.0:*                           7650/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                           7650/named
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     7931     2619/acpid          /var/run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     8493     2652/gpm            /dev/gpmctl
root@slacky:/#

done…. buat simple DNS Server menggunakan bind di Slackware 13.

ok, sekarang cuman contoh aja jika ingin menambahkan domain sendiri. misalnya blitar.org.

edit file /etc/named.conf, dan tambahkan baris berikut :

zone “blitar.org” IN {
type master;
file “caching-example/blitar.org.zone”;
};

buat file blitar.org.zone di /var/named/caching-example/

root@slacky:/# vim /var/named/caching-example/blitar.org.zone

isinya seperti ini :

$TTL    86400
blitar.org.     IN      SOA     blitar.org      root.blitar.org (
42
3H
15M
1W
1D
)
IN      NS      localhost
localhost       IN      A       127.0.0.1
blitar.org      IN      A       74.86.158.94

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments on “Slackware 13 : Simple DNS with bind”

  • 23 September, 2009, 12:07

    Es pleret coy enak nang alun alun ahak ahak (griltongue) peh (mmm)

Trackbacks

  1. bayu dot Blitar dot ORG : Hei.. Itu Aku !!! » BIND : Istilah DNS Server

Leave a Comment

CommentLuv badge
:-)) :-) :-D (LOL) :-P (woot) ;-) :-o X-( :-( :-& (angry) (annoyed) (bye) B-) (cozy) (sick) (: (goodluck) (griltongue) (mmm) (hungry) (music) (tears) (tongue) (unsure) (highfive) (dance) (doh) (brokenheart) (drinking) (girlkiss) (rofl) (money) (rock) (nottalking) (party) (sleeping) (thinking) (bringit) (worship) (applause) 8-) (gym) (heart) (devil) (lmao) (banana_cool) (banana_rock) (evil_grin) (headspin) (heart_beat) (ninja) (haha) (evilsmirk) (bigeyes) (funkydance) (idiot) (lonely) (scenic) (hassle) (panic) (okok) (yahoo)