Linux
Home / Blog / Linux / Lab-6 Linux Domain Name Server

Lab-6 Linux Domain Name Server

Konfigurasi Domain Name Server (DNS)

Perintah APT dan DPKG

  1. Menginstal paket DNS

    Perintah : apt-get install bind9

  2. Masuk kedirectory bind

    Perintah cd /etc/bind

Dalam BIND hanya 3 buah file yang dilakukan konfigurasi

  1. nano named.conf.local

——-Tambahkan file dibawah ini——–

PERHATIKAN TANDA BACA DAN KATA-KATANYA

zone “bangmaman.com” {

type master;

file “/etc/bind/db.bangmaman.com”;

};

zone “50.50.50.in-addr.arpa” {

type master;

file “/etc/bind/db.78”;

};

 

  1. copykan file

    cp db.local db.bangmaman.com

    cp db.127 db.78


  1. edit file db.bangmaman.com

    ;

    ; BIND data file for local loopback interface

    ;

    $TTL 604800

    @ IN SOA bangmaman.com.. root. bangmaman.com.. (

    2 ; Serial

    604800 ; Refresh

    86400 ; Retry

    2419200 ; Expire

    604800 ) ; Negative Cache TTL

    ;

    @ IN NS latihan.com.

    @ IN A 10.10.100.1

    www IN A 10.10.100.1


  1. edit file db.100

    ;

    ; BIND reverse data file for local loopback interface

    ;

    $TTL 604800

    @ IN SOA bangmaman.com.. root. bangmaman.com. (

    1 ; Serial

    604800 ; Refresh

    86400 ; Retry

    2419200 ; Expire

    604800 ) ; Negative Cache TTL

    ;

    @ IN NS bangmaman.com.

    1 IN PTR bangmaman.com.

    1 IN PTR www.bangmaman.com.


 

  1. jalankan restart service

    /etc/init.d/bind9 restart

    atau

    service bind9 restart

  2. Konfiguras pada computer host kita dengan DNS seperti ini sesuai dengan server yang kita buat

Related Posts

Artikel Terbaru

Kategori

Recent Comments

No comments to show.
error: Content is protected !!