Kegiatan ROOT

Kamis, 06 September 2012

Konfigurasi DNS Server Linux Debian

1). Install DNS Server :
# beckz@debian:~$ apt-get install bind9
2). Edit file konfigurasi DNS Server :
# beckz@debian:~$ pico /etc/bind/named.conf
// 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”;
// prime the server with knowledge of the root servers
zone “.” {
type hint;
file “/etc/bind/db.root”;
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone “beckz.net.” {
type master;
file “/etc/bind/db.debian”;
};
zone “192.in-addr.arpa” {
type master;
file “/etc/bind/db.192″;
};
zone “beckz.com.” { “(Untuk settingan dua DNS Server)”
type master;
file “/etc/bind/db.debian2″;
};
zone “0.in-addr.arpa” {
type master;
file “/etc/bind/db.0″;
};
zone “255.in-addr.arpa” {
type master;
file “/etc/bind/db.255″;
};
// zone “com” { type delegation-only; };
// zone “net” { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the “root-delegations-only” feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including “MUSEUM” and “DE”, and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { “DE”; “MUSEUM”; };
include “/etc/bind/named.conf.local”;
3). Edit file konfigurasi DNS Server di db.debian dan db.192
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA beckz.net. root.beckz.net. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS beckz.net.
@ IN A 192.168.13.13
www IN A 192.168.13.13
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA beckz.net. root.beckz.net. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS beckz.net.
13.13.168 IN PTR beckz.net.
www IN PTR beckz.net.
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA beckz.com. root.beckz.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS beckz.com.
@ IN A 192.168.14.14
www IN A 192.168.14.14
4). Jalankan DNS Server :
# beckz@debian:~$ /etc/init.d/bind9 restart
Stopping domain name service…: bind.
Starting domain name service…: bind.

0 komentar:

Poskan Komentar