LOMBA BLOG UNY

LOMBA BLOG UNY
Dalam rangka Dies Natalis ke-60 UNIVERSITAS NEGERI YOGYAKARTA

instalasi dan konfigurasi DNS (Bind9) pada Debian 9



apt install bind9 dnsutils -y
 

cd /etc/bind/
 

nano named.conf
 

baris terbawah beri tanda pagar :
# include "/etc/bind/named.conf.default-zones";


lalu tambahkan :
acl int {
10.0.0.0/8;
};
acl ext {
172.17.1.253/24;
};
view "int" {
recursion yes;
match-clients {int;};
zone "sumbodo.cloud" {
type master;
file "/etc/bind/db.int";
};
zone "10.in-addr.arpa" {
type master;
file "/etc/bind/db.10";
};
include "/etc/bind/named.conf.default-zones";
};
view "ext" {
recursion no;
match-clients {ext;};
zone "
sumbodo.cloud" {
type master;
file "/etc/bind/db.ext";
};
zone "100.in-addr.arpa" {
type master;

file "/etc/bind/db.100";
};
include "/etc/bind/named.conf.default-zones";
};
cp db.local db.sumbodo
cp db.127 db.10
nano db.sumbodo
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA
sumbodo.cloud. root.sumbodo.cloud. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS
sumbodo.cloud.
@ IN A 10.1.1.10
sumbodo-lb IN A 10.1.1.10
sumbodo-srv1 IN A 10.1.1.20sumbodo-srv2 IN A 10.1.1.30sumbodo-e-client IN A 172.17.1.10sumbodo-i-srv IN A 10.2.2.10sumbodo-i-client IN A 10.2.3.10sumbodo-cloud-edge IN A 172.17.1.253sumbodo-internal-edge IN A 172.17.1.254
mail IN A 10.1.1.20
@ IN MX 10 mail
 

nano db.int
$include "/etc/bind/db.sumbodo";
www IN CNAME sumbodo-srv1
 

nano db.ext
$include "/etc/bind/db.sumbodo";
www IN CNAME sumbodo-cloud-edge
nano db.10

; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA
sumbodo.cloud. root.sumbodo.cloud. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS
sumbodo.cloud.
@ IN A 10.1.1.10
10.1.1 IN PTR
sumbodo.cloud.
10.1.1 IN PTR
sumbodo-lb.sumbodo.cloud.
20.1.1 IN PTR
sumbodo-srv1.sumbodo.cloud.
30.1.1 IN PTR
sumbodo-srv2.sumbodo.cloud.
10.1.1 IN PTR www.
sumbodo.cloud.
cp db.10 db.100
 

nano db.100
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA
sumbodo.cloud. root.sumbodo.cloud. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS
sumbodo.cloud.
253.17.1 IN PTR
sumbodo.cloud
253.17.1 IN PTR www.
sumbodo.cloud

/etc/init.d/bind9 restart

Postingan terkait:

7 Tanggapan untuk "instalasi dan konfigurasi DNS (Bind9) pada Debian 9"