Sebelum anda melakukan setting DNS Server, ada beberapa hal yang harus anda lakukan, yaitu :
1. Menginstall aplikasi WEB server
2. Membuat konfigurasi named.conf pada directory /etc/bind/
3. Membuat konfigurasi domain pada directory /etc/bind/
4. Membuat konfigurasi resolver pada directory /etc/bind/
Langkah-langkah konfigurasi
1. Install aplikasi Web Server
root:~# apt-get install apache2
2. Install aplikasi PHP
root:~# apt-get install php5
3. buat directory file web yang akan dijalankan
root:~# mkdir /var/www/web
4. Edit file /etc/apache2/sites-available/default
root:# nano /etc/apache2/sites-available/default
Ubahlah menjadi :
NameVirtualHost kursus-it.com
ServerAdmin webmaster@kursus-it.com
DocumentRoot /var/www/web/
Options FollowSymLinks
AllowOverride None
Option Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
# This directive allows us to have apache2’ s default start page
# in /apache2-default/, but still have / got to the right place
</Directory
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Option ExecCGI –MultiView +SymLinks IfOwnerMatch
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ “/usr/share/doc/”
Option Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Simpan dengan menekan Ctrl + X, Y, enter
5. Membuat Web pada directory /var/www/web/
root:~# nano /var/www/web/index.html
SELAMAT DATANG DI WEB SERVER KURSUS-IT.COM
Simpan dengan menekan Ctrl + X, Y, enter
6. Restart Daemon Apache
root:~# /etc/init.d/apache2 restart
7. Tes Web Server
root:~# lynx kursus-it.com
Permasalahan pada saat syntax di atas tidak tampil adalah :
• Lynx belum terinstall
• Periksa kembali pada /etc/apache2/sites-available/default, letak directory belum sesuai.
• Konfigurasi pada /etc/hosts, nama hostnya belum sesuai.
SELAMAT DATANG DI WEB SERVER KURSUS-IT.COM