• Kerjaan Thu, Apr 29, 2010

    Akhirnya niat saya untuk migrasi dari fedora 12 ke centos 5.4 terlaksana. Settingan terakhir yang harus saya lakukan adalah instalasi lokal cache untuk dns server bind. Ternyata instalasinya tidak sesulit yang dibayangkan. Banyak tutorial yang saya baca tidak bisa saya mengerti dengan baik tapi akhirnya selesai juga berkat om gugel dan sebuah blog (lupa blognya – kalo saya ketemu blognya , akan saya pasang linknya disini ) .

    1. Tahap pertama adalah install paket bind

    yum -y install bind caching-nameserver
    kemudian buka file named.caching-nameserver.conf  yang akan terlihat seperti dibawah ini
    //
    // named.caching-nameserver.conf
    //
    // Provided by Red Hat caching-nameserver package to configure the
    // ISC BIND named(8) DNS server as a caching only nameserver
    // (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    // DO NOT EDIT THIS FILE - use system-config-bind or an editor
    // to create named.conf - edits to this file will be lost on
    // caching-nameserver package upgrade.
    //
    options {
            listen-on port 53 { 127.0.0.1; };
            listen-on-v6 port 53 { ::1; };
            directory       "/var/named";
            dump-file       "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/data/named_mem_stats.txt";
    
            // Those options should be used carefully because they disable port
            // randomization
            // query-source    port 53;
            // query-source-v6 port 53;
    
            allow-query     { localhost; };
    };
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    view localhost_resolver {
            match-clients      { localhost; };
            match-destinations { localhost; };
            recursion yes;
            include "/etc/named.rfc1912.zones";
    };

    Ubah beberapa pilihan seperti :

    listen-on port 53 { 127.0.0.1; }; menjadi listen-on port 53 { any; };
    
    allow-query     { localhost; }; menjadi  allow-query     { any; };
    match-clients  { localhost; }; menjadi match-clients  { any; };
    match-destinations { localhost; }; menjadi match-destinations { any; };
    
    Dan tambahkan baris berikut sebelum allow-query     { any; };
    
    forwarders { 208.67.222.222 ; 208.67.220.220 ;} ;
    forward first;
    
    Simpan dan tutup file tersebut , kemudian jalankan service named dengan perintah berikut:
    # service named start
    
    Ubah dns server di tiap klien agar mengakses dns server lokal. Dan lakukan ujicoba dengan
    menggunakan perintah ping dan nslookup untuk memastikan dns server bekerja dengan baik.
    

    Posted by roman @ 3:20 pm for Kerjaan |

    4 Comments to "Instal lokal cache bind dns centos"

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *


    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

April 2010
M T W T F S S
« Feb   Jun »
 1234
567891011
12131415161718
19202122232425
2627282930  

Chat here