26 May 2010

Menyeting DNS pada UBUNTU 9.10

1. install sudo apt-get install bind9, dan paket sudo apt-get install dnsutils.
pastikan sudah konek internet

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 "sandy_arjuni" {
type master;
file "/etc/bind/db.sandy_arjuni";
};
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.sandy_arjuni.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

SElesai deh...Met NyoBa ya...

0 Komentar:

Post a Comment

Komentarmu Menunjukan Kualitasmu di Dunia Maya (^_^)

Sandy Corat-coret! © 2012 | Created by Sandy A. | Powered by Blogger.com