untuk Igos
Masuk ke terminal
Masuk Sebagai Super User
su
Install web server, PHP dan Mysql
sudo apt-get apache2
sudo apt-get php5sudo apt-get mysql-server
sudo apt-get phpmyadmin
Masuk ke directori /var/www/
cd /var/www/html
Buat folder baru
mkdir 12018180
Masuk ke folder yang baru dibuat
cd 12018180
Buat file baru
touch index.php
Masuk ke file index.php
nano index.php
Isikan syntax berikut
<?php
Echo “Selamat Datang Di Web Yoza”;
?>
simpan dengan ctrl+o
lalu coba jalankan di browser dengan mengetik
http://localhost/12018180/index.php
Sebuah Blog biasa, dari mahasiswa biasa. Blog ini dibuat semata-mata karena ingin menyalurkan keinginan menulis, baik tentang perjalanan hidup, Cinta, Hiburan, Informatika, Manga, dan Anime. Just keep your eyes on this blog! (^o^)
Minggu, 25 Mei 2014
Sabtu, 17 Mei 2014
Tutorial Konfigurasi DNS Server
Mengkonfigurasi DNS Server
Untuk melakukan konfigurasi DNS server maka lakukan instalasi DNS dengan perintah:
apt-get install bind9
lalu masuk ke folder bind
cd /etc/bind
ls
Setelah itu cari file db.local dan named.conf
cp db.local db.yoza
nano db.yoza
isikan
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA yoza.com ns1.yoza.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS yoza.com
@ IN A 127.0.0.1
IN A 192.168.10.1 ;(alamat ip komputer anda )
@ IN AAAA ::1
ns1IN A 192.168.10.1 ;(alamat ip komputer anda )
www IN CNAME ns1
ftp IN CNAME ns1
smtp IN CNAME ns1
4. Copy db.yoza
cp db.yoza db.ipresolver
nano db.ipresolver
isikan
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA yoza.com. ns1.yoza.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS yoza.com
1 IN PTR yoza.com.
5. konfigurasi named.conf
nano named.conf
isikan
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "isgi.edu" {
type master;
file "/etc/bind/db.yoza";
};
//ipnya di balik
zone "10.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.ipresolver";
};
include "/etc/bind/named.conf.local";
6. konfigurasi DNS clien
cd /etc
nano resolv.conf
isikan
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search yoza.com
nameserver 192.168.10.1 (ip komputer anda)
7. restart bind
/etc/init.d/bind9 restart
8. cek dengan
dig -x isgi.edu
jika nilai tidak 0 berati berhasil
ping www.yoza.com jika tidak unreachable berarti berhasil
Langganan:
Postingan (Atom)