Instalasi Bind di Centos..

1. Paket yang tersedia

[root@rhesa2 named]# rpm -qa bind*
bind-libs-9.2.4-2
bind-utils-9.2.4-2
bind-9.2.4-2

2. Setting Komputer 1 sebagai NS1 dengan IP 192.168.0.1

[root@rhesa ~]# cat /etc/resolv.conf
nameserver 192.168.0.1

3. Setting file /etc/named.conf

[root@rhesa ~]# nano /etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//

options {
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone “localhost” IN {
type master;
file “localhost.zone”;
allow-update { none; };
};

zone “rhesamahendra.com” IN {
type master;
file “/var/named/rhesamahendra.com.zone”;
allow-update { none; };
};

zone “0.168.192.in-addr.arpa” IN {
type master;
file “/var/named/0.168.192.rev”;
allow-update { none; };

};

include “/etc/rndc.key”;

4. Setting file /var/named/rhesamahendra.com.zone, sebelumnya buat filenya terlebih dahulu

[root@rhesa ~]# nano /var/named/rhesamahendra.com.zone
$TTL 86400
@ IN SOA rhesamahendra.com. root.rhesamahendra.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS ns1.rhesamahendra.com.
@ IN A 192.168.0.1
ns1 IN A 192.168.0.1
@ IN MX 10 mail.rhesamahendra.com.
mail IN A 192.168.0.1
WWW IN A 192.168.0.1

5. Setting file /var/named/0.168.192.rev, sebelumnya buat filenya terlebih dahulu

[root@rhesa ~]# nano /var/named/0.168.192.rev
$TTL 86400
@ IN SOA rhesamahendra.com. root.rhesamahendra.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D) ; minimum
@ IN NS ns1.rhesamahendra.com.
43 IN PTR binggo.rhesamahendra.com.

6. Nslookup rhesamahendra.com

[root@rhesa ~]# nslookup rhesamahendra.com
Server: 192.168.0.1
Address: 192.168.0.1#53

Name: rhesamahendra.com
Address: 192.168.0.1

7. Dig rhesamahendra.com

[root@rhesa ~]# dig rhesamahendra.com

; <> DiG 9.2.4 <> rhesamahendra.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10576
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;rhesamahendra.com. IN A

;; ANSWER SECTION:
rhesamahendra.com. 86400 IN A 192.168.0.1

;; AUTHORITY SECTION:
rhesamahendra.com. 86400 IN NS ns1.rhesamahendra.com.

;; ADDITIONAL SECTION:
ns1.rhesamahendra.com. 86400 IN A 192.168.0.1
;; Query time: 8 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sat Aug 2 10:56:16 2008
;; MSG SIZE rcvd: 85

8. Konfigurasi 1 NS selesai. klo terjadi eror coba rubah permission folder /var/named

[root@rhesa ~]# chmod 777 -Rvf /var/named/
mode of `/var/named/’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/named.zero’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/localhost.zone’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/198.99.208.rev’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/data’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/named.local’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/named.ca’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/named.ip6.local’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/localdomain.zone’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/rhesamahendra.com.zone’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/named.broadcast’ changed to 0777 (rwxrwxrwx)
mode of `/var/named/slaves’ changed to 0777 (rwxrwxrwx)

9. Untuk melihat masalah dapat menggunakan log.

[root@rhesa ~]# tail /var/log/messages
Aug 2 10:53:57 rhesa named[20094]: listening on IPv4 interface venet0:0, 192.168.0.1#53
Aug 2 10:53:57 rhesa named[20094]: command channel listening on 127.0.0.1#953
Aug 2 10:53:57 rhesa named[20094]: zone 0.168.192.in-addr.arpa/IN: loaded serial 100
Aug 2 10:53:57 rhesa named[20094]: zone rhesamahendra.com/IN: loaded serial 100
Aug 2 10:53:57 rhesa named[20094]: zone localhost/IN: loaded serial 42
Aug 2 10:53:57 rhesa named[20094]: running
Aug 2 10:53:57 rhesa named[20094]: zone rhesamahendra.com/IN: sending notifies (serial 100)
Aug 2 10:53:57 rhesa named[20094]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 100)
Aug 2 10:53:57 rhesa named[20094]: received notify for zone ‘rhesamahendra.com’
Aug 2 10:53:57 rhesa named[20094]: received notify for zone ‘0.168.192.in-addr.arpa’

selamat mencoba!!!
akan coba ditulis menggunakan secondary server..

3 Responses to “Instalasi Bind di Centos..”


  1. 1 kenedy September 26, 2008 at 2:56 pm

    mas artikelmu sangat bagus baget bisa buat lagi ngak mysqlserver backup di kompi terpisah aqar jika server master trobel bisa di ganti sementara sama scond servernya

  2. 2 Leoui July 24, 2010 at 5:01 pm

    manteb mas! ditunggu secondary NS nya😀

  3. 3 buzzknow July 24, 2010 at 5:09 pm

    thanks om atas tutznya, sussah juga cari tutz bhs indo😦

    tapi akhirnya dapet juga :d

    thanks bgt


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Follow me

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Status

Kirim Pesan YM