• Kalender nih…

    May 2008
    M T W T F S S
    « Jan   Jun »
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • Posts teranyar

  • Top Posts

  • Blog Stats

    • 3,209 hits
  • Kategori

  • Meta

  • Konfigurasi DNS Server di Slackware

    Yah. Ini merupakan salah satu tugas dari proyek yang diberikan oleh salah seorang asisten lab impian saya :) . Moga-moga saya lulus rekruitasi di sana ;) (Amiin..). Dinisi saya masih sangat pemula dalam hal linux and networking, tapi saya akan mencoba sedikit sharing ilmu yang saya dapatkan. Moga para pembaca paham :mrgreen: .

    Serius mode : ON
    Umumnya aplikasi yang digunakan untuk server DNS adalah BIND. Settingan default BIND ada di file /etc/named.conf dan file-file zone bisa diletakkan di direktori /var/named.

    Di sini saya mencoba mengkonfigurasi DNS Server untuk server-server di jaringan kampus saya.
    Berikut isi file /etc/named.conf saya:

    options {
    directory "/var/named";

    };

    zone "." IN {
    type hint;
    file "named.ca";
    };

    zone "localhost" IN {
    type master;
    file "localhost.zone";
    allow-update { none; };
    };

    zone "0.0.127.in-addr.arpa" IN {
    type master;
    file "named.local";
    allow-update { none; };
    };

    include "/etc/rndc.key";

    zone "itt" IN {
    type master;
    notify no;
    file "itt.zone";
    allow-update {none;};
    };

    zone "200.14.10.in-addr.arpa" IN {
    type master;
    notify no;
    file "10.14.200.zone";
    allow-update {none;};
    };

    Dan berikut ini isi file /var/named/itt.zone saya:

    $TTL 86400
    $ORIGIN itt.
    @ 1D IN SOA @ root (
    42 ; serial (d. adams)
    3H ; refresh
    15M ; retry
    1W ; expiry
    1D ) ; minimum

    1D IN NS dns.itt
    1D IN A 10.14.200.xx #isi dengan ip server DNS

    dns 1D IN CNAME @
    students 1D IN A 10.14.200.xxx #isi dengan ip domain di jaringanmu
    iard 1D IN A 10.14.200.x

    Dan terakhir, isi file 10.14.200.zone :

    $TTL 86400
    @ IN SOA itt. root.itt. (
    1997022700 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS itt.

    1 IN PTR localhost.
    xxx IN PTR students.
    x IN PTR iard.

    Untuk menjalankan server DNS nya, tinggal ketik perintah

    #named

    Untuk menguji apakah server sudah berjalan dengan baik, ketik perintah di klien:

    $ping iard.itt
    PING iard.itt (10.14.200.x) 56(84) bytes of data.
    64 bytes from iard (10.14.200.x): icmp_seq=1 ttl=63 time=1.73 ms
    64 bytes from iard (10.14.200.x): icmp_seq=2 ttl=63 time=0.264 ms

    Serius mode:OFF

    Source: this post
    and this :mrgreen: :mrgreen: :mrgreen:

    One Response to “Konfigurasi DNS Server di Slackware”

    1. Adi N Says:

      Nice Blog
      Please visit me back at http://www.adminkidnet.co.cc


    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 )

    Connecting to %s

    Follow

    Get every new post delivered to your Inbox.