Difference between revisions of "BIND: Instalasi di Ubuntu 18.04"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "==Instalasi== sudo su apt update apt install bind9 bind9utils bind9-doc")
 
Line 4: Line 4:
 
  apt update
 
  apt update
 
  apt install bind9 bind9utils bind9-doc
 
  apt install bind9 bind9utils bind9-doc
 +
 +
 +
==Konfigurasi==
 +
 +
Edit
 +
 +
sudo vi /etc/bind/named.conf.options
 +
 +
Ubah ns1 IP address yang benar, misalnya,
 +
 +
options {
 +
        directory "/var/cache/bind";
 +
 +
        recursion yes;                # enables resursive queries
 +
        allow-recursion { trusted; };  # allows recursive queries from "trusted" clients
 +
        listen-on { 10.128.10.11; };  # ns1 private IP address - listen on private network only
 +
        allow-transfer { none; };      # disable zone transfers by default
 +
 +
        forwarders {
 +
                8.8.8.8;
 +
                8.8.4.4;
 +
          };
 +
...
 +
};

Revision as of 11:46, 20 February 2019

Instalasi

sudo su
apt update
apt install bind9 bind9utils bind9-doc


Konfigurasi

Edit

sudo vi /etc/bind/named.conf.options

Ubah ns1 IP address yang benar, misalnya,

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

        recursion yes;                 # enables resursive queries
        allow-recursion { trusted; };  # allows recursive queries from "trusted" clients
        listen-on { 10.128.10.11; };   # ns1 private IP address - listen on private network only
        allow-transfer { none; };      # disable zone transfers by default

        forwarders {
                8.8.8.8;
                8.8.4.4;
         };
...
};