Install DNS Server Debian 12: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
Pastikan server sudah mendapatkan ip address. Cek dengan cara mengetikan | Pastikan server sudah mendapatkan ip address. Cek dengan cara mengetikan | ||
#ip a (enter) | |||
Jika sudah muncul tampilan berikut, artinya sudah mendpatkan ip address | Jika sudah muncul tampilan berikut, artinya sudah mendpatkan ip address |
Revisi per 1 Agustus 2024 02.40
Pastikan server sudah mendapatkan ip address. Cek dengan cara mengetikan
#ip a (enter)
Jika sudah muncul tampilan berikut, artinya sudah mendpatkan ip address
root@latdns:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0@if114: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 76:69:11:b8:38:cd brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.20.9/24 brd 192.168.20.255 scope global dynamic eth0 valid_lft 1717sec preferred_lft 1717sec inet6 fe80::7469:11ff:feb8:38cd/64 scope link valid_lft forever preferred_lft forever root@latdns:~#
Install aplikasi bind9
#apt install bind9 #cd /etc/bind/ (enter) #cp named.conf.local named.conf.old #nano named.conf.local
zone "robie.tkj1" { type master; file "/etc/bind/db.robie"; }; zone "8.20.168.192.in-addr.arpa" { type master; file "/etc/bind/db.192"; };
#cp db.local db.robie #nano db.robie
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA robie.tkj1. root.robie.tkj1. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS robie.tkj1. @ IN A 192.168.20.8 www IN A 192.168.20.8 mail IN A 192.168.20.8 ftp IN A 192.168.20.8
#cp db.255 db.192 #nano db.192
; ;BIND reverse data file for broadcast zone ; $TTL 604800 @ IN SOA robie.tkj1. root.robie.tkj1. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS robie.tkj1. l IN PTR robie.tkj1.
#nano /etc/resolv.conf
nameserver 192.168.20.1 nameserver 180.250.245.142 nameserver 180.250.245.133
#systemctl restart bind9 #</nowiki>systemctl status bind9
* named.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/named.service; enabled; preset: enabled) Active: active (running) since Wed 2024-07-31 00:52:24 UTC; 29min ago Docs: man:named(8) Main PID: 3473 (named) Status: "running" Tasks: 5 (limit: 38314) Memory: 6.6M CPU: 1.003s CGroup: /system.slice/named.service `-3473 /usr/sbin/named -f -u bind
Pengujian
masuk ke windows lalu buka cmd, lalu ketikkan
C:\Users\USER>nslookup robie.tkj1
8.20.168.192.in-addr.arpa primary name server = robie.tkj1 responsible mail addr = root.robie.tkj1 serial = 1 refresh = 604800 (7 days) retry = 86400 (1 day) expire = 2419200 (28 days) default TTL = 604800 (7 days) Server: UnKnown Address: 192.168.20.8 Name: robie.tkj1 Address: 192.168.20.8