The document provides steps for configuring and installing DHCP, DNS, web server, and mail server on a server. It includes commands for installing necessary packages, configuring files like dhcpd.conf, named.conf, apache sites-available files, and postfix main.cf file. It also describes creating directories, files, adding users and testing functionality of the services.
The document provides steps for configuring and installing DHCP, DNS, web server, and mail server on a server. It includes commands for installing necessary packages, configuring files like dhcpd.conf, named.conf, apache sites-available files, and postfix main.cf file. It also describes creating directories, files, adding users and testing functionality of the services.
The document provides steps for configuring and installing DHCP, DNS, web server, and mail server on a server. It includes commands for installing necessary packages, configuring files like dhcpd.conf, named.conf, apache sites-available files, and postfix main.cf file. It also describes creating directories, files, adding users and testing functionality of the services.
2. Apt-get install isc-dhcp-server. 3. Configurasi /etc/default/isc-dhcp-server. -nano /etc/default/isc-dhcp-server (INTERFACES=”eth0”) Simpan Ctrl+O, lalu Ctrl+X. 4. Configurasi dhcp.conf. -nano /etc/dhcp/dhcpd.conf Hapus pagar, ubah subnet Subnet 192.168.20.16 netmask 255.255.255.248; Range 192.168.20.18 192.168.20.22; Option domain name server 192.168.20.17; Option name server “sekolah.sch.id” ; Option routers 192.168.20.17; Option broadcast 192.168.20.23; Default-lease-time-100 21600; Simpan Ctrl+O, lalu Ctrl+X. 5. Service isc-dhcp-server restart. 6. Pengecekan di client. Pengecekan kesalahan : 1. /usr/sbin/dhcpd –t 2. Systemctl status isc-dhcp-server.servive –L 3. /etc/init.d/isc-dhcp-server status 4. Service isc-dhcp-server status 5. Nano /etc/network/interfaces (allow-hotplug eth0 ganti menjadi auto eth0)
Langkah-langkah Installasi DNS :
1. Apt-get install bind9. 2. Mengkonfigurasi named.conf.local. -nano /etc/bind/named.conf.local Zone ”sekolah.sch.id” { Type master ; File “/etc/bind/db.sekolah” ; }; Zone “20.168.192. in-addr.arpa” { Type master ; File “/etc/bind/db.ipsekolah” ; }; 3. Configurasi Forward. -cd /etc/bind -cp db.local db.sekolah -nano db.sekolah Ganti localhost menjadi “sekolah.sch.id” @ IN NS sekolah.sch.id. @ IN A 192.168.20.17 www IN A 192.168.20.17 mail IN A 192.168.20.17 Simpan Ctrl+O, lalu Ctrl+X. 4. Configurasi Reverse. -cp db.127 db.ipsekolah -nano db.ipsekolah Ganti localhost menjadi “sekolah.sch.id” @ IN NS sekolah.sch.id. 17 IN PTR sekolah.sch.id. 17 IN PTR www.sekolah.sch.id. 17 IN PTR mail.sekolah.sch.id. Simpan Ctrl+O, lalu Ctrl+X -/etc/init.d/bind9 restart -service bind9 restart 5. Setting Resolv.conf. -nano /etc/resolv.conf Search sekolah.sch.id Sever name 192.168.20.17 Simpan Ctrl+O, lalu Ctrl+X. 6. Pengecekan DNS. -NSlookup sekolah.sch.id -Nslookup 192.168.20.17 7. Pengecekan kesalahan. -named-checkconf –Z -systemctl status bind9.service –L Bisa menggunakan service bind9 status -/etc/init.d/bind9 status -service bind9 status Langkah-langkah Installasi Web Server : 1. Apt-get install apache2 php5 mysql-server phpmyadmin lynx. 2. Cd /etc/apache2/sites-available. -cp 000-default.conf sekolah.conf -nano sekolah.conf Ubah server name www.sekolah.sch.id Server alias sekolah.sch.id Server admin webmaster@sekolah.sch.id Document Root /home/site/www <Directory /home/site/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> 3. a2dissite 000-default.conf. 4. a2ensite sekolah.conf. 5. Service apache2 reload. 6. Membuat Directory baru. -cd /home -mkdir site -cd site -mkdir www 7. Buat file html. -nano /home/site/www/index.html <Html> <Head><tittle>sekolah.sch.id</title> </Head> <Body> <H1>selamat datang di sekolah.sch.id</H1> </Body> </Html> Simpan Ctrl+O, lalu Ctrl+X. 8. Pengujian. -Lynx sekolah.sch.id 9. Pengecekan kesalahan. -service apache2 status -systemctl status apache2.service –L
Langkah-langkah Installasi Mail Server :
1. Apt-cdrom add (masukkan disc3). 2. Apt-get install postfix courier-imap courier-pop. 3. Maildirmake /etc/skel/Maildir. 4. Membuat user baru. -adduser user1 -adduser user2 -adduser user3 -adduser user4 5. Nano /etc/postfix/main.cf. Tambahkan paling bawah Home_mailbox = Maildir/ Simpan Ctrl+O, lalu Ctrl+X. 6. Dpkg-reconfigure postfix. Tambahkan paling ujung 0.0.0.0/0 -service postfix restart -service courier restart Pengujian -telnet mail.sekolah.sch.id 25 Mail from: user1 Rcpt to: user2 Data Tas . Quit -telnet mail.sekolah.sch.id 110 User user2 Pass 1 Stat Retr 1 Quit