LKS2023
LKS2023
LKS2023
<Anonymous /home/romeo>
User Romeo
</Anonymous>
<Anonymous /home/juliet>
User Juliet
</Anonymous>
adduser romeo
adduser Juliet
IP SERVER 192.168.10.219
Domain : lkspadang2023.com
1. Install bind9
# apt install bind9 dnsutils
zone “lkspadang2023.com” {
type master;
file “/etc/bind/db.lks”;
};
zone “10.168.192.in-addr.arpa” {
type master;
file “/etc/bind/rev.lks”;
};
4. Create Forward
cp /etc/bind/db.local /etc/bind/db.lks
edit
# nano /etc/bind/db.lks
;
; BIND data file for local loopback interface
$TTL 604800
@ IN SOA lkspadang2023.com. root.lkspadang2023.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS lkspadang2023.com
@ IN A 192.168.11.56
www IN A 192.168.10.219
file IN A 192.168.10.219
mail IN A 192.168.10.219
5. Create reverse
Copy kan db.127 ke rev.lks
# cp /etc/bind/db.127 /etc/bind/rev.lks
# nano /etc/bind/rev.lks
# nano /etc/bind/db.lks
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA lkspadang2023.com. root.lkspadang2023.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS lkspadang2023.com.
23 IN PTR lkspadang2023.com.
23 IN PTR http://www.lkspadang2023.com.
23 IN PTR ftp://lkspadang2023.com.
23 IN PTR mail.lkspadang2023.com.