Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Edit file /etc/hosts : nano /etc/hosts

==> Ubah

127.0.1.1 tkj

Menjadi :

#127.0.1.1 tkj

==> Tambahkan

192.168.50.2 tkj.smk.sch.id server

192.168.50.2 www.smk.sch.id

192.168.50.2 mail.smk.sch.id

Install bind : apt-get install bind9

Edit/buat file /etc/resolv.conf : nano /etc/resolv.conf

Ubah direktori : cd /etc/bind


Buat zona domain : nano named.conf.local

Buat file forward/reverse dari template

cp db.local forward

cp db.127 reverse

Edit file forward

nano forward
nano reverse

Restart layanan BIND : systemctl restart bind9

Install dns util : apt install dnsutils


Install web server : apt-get install apache2

Aktifkan modul userdir : a2enmod userdir

Buat direktori /etc/skel : mkdir /etc/skel/public_html

Buat file index.html untuk user : nano /etc/skel/public_html/index.html

<html>
<head>
<title>Web User</title>
</head>
<body>
<h1>
<marquee style="color: blue; font-size: 300%;" behavior="alternate" >WEB USER</marquee>
</h1>

</body>
</html>

Tambahkan user baru : adduser nur


Restart layanan apache : systemctl restart apache2.service

Coba dari browser : http://<ip_server>/~nur

You might also like