Disini Anda sudah menginstall OS Debian dan tinggal mengkonfigurasi
- Install bind9 terlebih tahulu apt-get install bind9
- dan masuk directory cd/etc/bind
- ketik nano named.conf.local dan edit bagian
zone “smkmuhbligo.com” {
type master;
file “/etc/bind/db.local”;
};
zone “172.173.174.in-addr.arpa” {
type master;
file “/etc/bind/db.127”;
};
*172.173.174 berasal dari : 174.173.172.1 IP Anda pada saat menginstall
4.
nano named.conf.options
options {
directory "/var/cache/bind";
forwarders {
172.173.174.1;
;
allow-query { any; };
5.
db.local
;
;BIND data dile for local loopback interface
;
sTTL 604800
@ IN SOA ns.cahbujang.info. ns.cahbujang.info. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache
;
@ IN NS ns.cahbujang.info.
@ IN MX 10 mail.cahbujang.info.
@ IN A 174.173.172.1
ns IN A 174.173.172.1
www IN A 174.173.172.1
mail IN A 174.173.172.1
6.
db.127
;
;BIND data dile for local loopback interface
;
sTTL 604800
@ IN SOA ns.cahbujang.info. ns.cahbujang.info. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache
;
@ IN NS ns.cahbujang.info.
1 IN PTR ns.cahbujang.info.
7.
Dan step akhir dns ketik
service bind9 restart
Konfigurasi Web server
- install dan ketik perintah, apt-get install apache2 php5
- nano /etc/apache2/sites-available/default
<virtualhost *:80>
ServerAdmin ns@cahbujang.info
ServerName www.cahbujang.info
ServerAlias cahbujang.info
DocumentRoot /var/www/
</virtualhost>
3.
nano /var/www/index.html ini hanya untuk menganti tampilan index
4. dan restart apache2 dengan perintah
service apache2 restart
Step akhir kalian atur IP Client , tentukan IP yang sudah tadi dibuat
address : 174.173.172.5
subnet mask : 255.255.255.0
preferred DNS sever : 174.173.172.1
Kemudian anda cek di browser dengan domain yang sudah dibuat tadi, contoh punya saya
cahbujang.info