Konfigurasi DNS Server

18
Oct 2022
CategoryLinux
Author : Admin Kursus-IT.Com
View :250x

Perintah APT dan DPKG
—————-
1. Merubah sources list
nano /etc/apt/sources.list
2. jalankan perintah apt-get update && apt-get upgrade lalu install bind9

>>> apt-get install bind9
—————————————-
3. nano named.conf.local
——-Tambahkan file dibawah ini——–
zone “latihan.com” {
type master;
file “/etc/bind/db.latihan”;
};

zone “100.10.01.in-addr.arpa” {
type master;
file “/etc/bind/db.100”;
};

—————————————-
4. copykan file
cp db.local db.latihan
cp db.127 db.100
—————————————-
5. edit file db.latihan

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA latihan.com. root.latihan.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
————————————————-
6. edit file db.100

;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA latihan.com. root.latihan.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS latihan.com.
1 IN PTR latihan.com.
1 IN PTR www.latihan.com.
—————————————————-
7. jalankan restart service
/etc/init.d/bind9 restart
atau
service bind9 restart

error: Content is protected !!
× Hubungi Kami