LKS2023

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

1.

Pemilihan repo pada mode install


Pilih mirror.unej
2. Menambah repo lokal
Nano /etc/apt/sources.list
Setelah itu
Apt-get update
3. Install apache2
apt-get install apache2 atau apt –y install apache2
4. Install mariadb
apt-get install mariadb-server atau apt –y install mariadb-server
5. Install php
apt-get install php atau apt –y install php
6. Install phpmyadmin
apt-get install phpmyadmin atau apt –y install phpmyadmin
7. Open ssh server
apt –y install openssh-server
nano /etc/ssh/sshd_config
systemctl restart ssh
8. Konfigurasi proftpd
apt –y install proftpd
nano /etc/proftpd/proftpd.conf

cari dan hilangkan pagar #defaultroot menjadi


defaultroot

<Anonymous /home/romeo>
User Romeo
</Anonymous>

<Anonymous /home/juliet>
User Juliet
</Anonymous>

adduser romeo
adduser Juliet

Konfigurasi DNS Server LKS ITNSA 2023

IP SERVER 192.168.10.219
Domain : lkspadang2023.com

1. Install bind9
# apt install bind9 dnsutils

2. Create Zone File


# nano /etc/bind/named.conf.local

zone “lkspadang2023.com” {
type master;
file “/etc/bind/db.lks”;
};
zone “10.168.192.in-addr.arpa” {
type master;
file “/etc/bind/rev.lks”;
};

3. Konfigurasi DNS Forwarder


# nano named.conf.options atau nano /etc/bind/named.conf.options
options {
directory “/var/cache/bind”;
forwarders {
8.8.8.8,8.8.4.4;
};
};

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.

6. Tambahkan resolv conf


#nano /etc/resolve.conf
Pastikan alamat server dns dibaris atas
nameserver 192.168.10.219
nameserver 8.8.8.8
nameserver 8.8.4.4

apt install resolvconf


sudo systemctl status resolvconf.service
nano /etc/resolvconf/resolv.conf.d/head
masukan ip server dns
resolvconf --enable-updates
resolvconf -u

7. Verifikasi dan ujicoba


# systemctl restart bind9
# nslookup 192.168.11.50
# nslookup lkspadang2023.com

You might also like