setting dns

1.konfigurasi dns

2.install
sudo ap-get install bind9

3.konfigurasi
sudo nano /etc/bind/named.conf.options
sudo nano /etc/bind/named.conf.local

options {
directory “/var/cache/bind”;
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all0′
s placeholder.
forwarders {
8.8.8.8;
8.8.4.4;
};

root@lab13:~# nano /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
include “/etc/bind/zones.rfc1918”;
zone “lab13.com” {
type master;
file “/etc/bind/db.lab13.com”;
};
zone “0.168.192.inaddr.
arpa” {
type master;
file “/etc/bind/db.192”;
};
include “/etc/bind/rndc.key”;

4.  sudo nano /etc/bind/db.lab13.com

BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.lab13.com. mail.lab13.com. (
20100820 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
localhost IN A 127.0.0.1
@ IN NS  ns.lab13.com.
ns IN A 192.168.0.1 <— ip anda

5.sudo nano /etc/bind/db.192

root@lab13:~# nano /etc/bind/db.192
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.lab13.com. mail.lab13.com (
20100820 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
1 IN PTR ns.lab13.com.

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