Sunday, June 27, 2010

Tutorial Konfigurasi DNS Server di Ubuntu 9.10

Haiiii... postingan kali ini masih seputar tugas Sys Admin...
Kali ini mengenai tutorial konfigurasi DNS Server di Ubuntu 9.0
Langsung aja yuk, let's cekidotttt....

Oh iya, sebelum melakukan konfigurasi, pastikan komputer atau laptop Anda sudah terkoneksi ke internet...

1. install sudo apt-get install bind9, dan paket sudo apt-get install dnsutils

2. edit ethernet kalian, di /etc/network/interfaces/eth0
isikan alamat IP kalian

iface eth0 inet static
address 192.168.13.2 ----> ifconfig eth0 atau menggunakan wirelees ifconfig wlan
netmask 255.255.255.0
gateway 192.168.13.1

3. edit /etc/bind/named.conf.options

forwardes {
192.168.13.2;
};

auth-nxdomain no; # conform to RFC1035
liste-on-v6 {any;};

4. edit /etc/bind/named.conf.local

zone "sfi.com" {
type master;
file "/etc/bind/db.sfi.com";
};

zone"13.168.192.in-addr.arpa" { -----> dibalik IP na
type master;
file "/etc/bind/db.192";
};

5. Tambahkan sudo cp /etc/bind/db.local /etc/bind/db.sfi.com
===============================================================

edit nama domainnya dan IP na
in NS domain
in A IP
www IN A IP
Ftp CNAME domain
mail in A IP


===============================================================
6. Tambahkan sudo cp /etc/bind/db.127 /etc/bind/db.192
===============================================================

in NS domain.com
2 IN A domain.com
2 CNAME www.domain.com
2 in A mail.domain.com

===============================================================
7. edit reserve /etc/resolv.conf ----- memetakan ip ke domain
===============================================================
domain namadomain.com.
search namadomain.com.
nameserver 192.168.13.2

8. edit /etc/hosts
=================================================================
menambahkan IP+domain

127.0.0.1 localhost
192.168.13.2 namadomain.com.
127.0.0.1 vanz-pc

9. restart seevice /etc/init.d/bind9 restart
10. restart service /etc/init.d/networking restart

Itu dia tutorialnya, semoga bisa memberikan manfaat...
Adios...

No comments:

Post a Comment