Install DNS Server Debian 12: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
Baris 24: | Baris 24: | ||
@ IN SOA robie.tkj1. root.robie.tkj1. ( | @ IN SOA robie.tkj1. root.robie.tkj1. ( | ||
2 ; Serial | 2 ; Serial | ||
604800 ; Refresh | 604800 ; Refresh | ||
Baris 30: | Baris 30: | ||
2419200 ; Expire | 2419200 ; Expire | ||
604800 ) ; Negative Cache TTL | 604800 ) ; Negative Cache TTL | ||
; | |||
@ IN NS robie.tkj1. | @ 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 | |||
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 | Pengujian | ||
masuk ke windows lalu buka cmd | masuk ke windows lalu buka cmd, lalu ketikkan | ||
C:\Users\USER>nslookup robie.tkj1 | |||
Name: 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 | |||
[[Kategori:ASJ TKJ]] | [[Kategori:ASJ TKJ]] |
Revisi per 1 Agustus 2024 02.25
#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