Konfirgurasi DNS Server Di Linux Debian 7 Wheezy

root@tkj:~# apt-cdrom add

http://andre-networking.blogspot.com/2015/01/repository-linux-debian-7-weezy.html

root@tkj:~# apt-get update

root@tkj:~# apt-get install bind9 -y

root@tkj:~# cd /etc/bind/

root@tkj:/etc/bind# ls
db.0    db.255    db.local     named.conf   
named.conf.local    rndc.key   bind.keys      db.127  db.empty  db.root   named.conf.default-zones  named.conf.options  zones.rfc1918

root@tkj:/etc/bind# nano named.conf.local

zone"andre-net.com"{
        type master;
        file"/etc/bind/andre.db";
};

zone"32.64.202.in-addr.arpa" {
        type master;
        file"/etc/bind/202.db";
};

 

root@tkj:~# cp db.local andre.dbroot@tkj:~# cp db.127 202.db
root@tkj:/etc/bind# nano andre.db

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     andre-net.com. root.andre-net.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      andre-net.com.
@       IN      AAAA    ::1
@       IN      A       202.64.32.2
www     IN      A       202.64.32.2
mail    IN      A       202.64.32.2
sub     IN      A       202.64.32.2


root@tkj:/etc/bind# nano 202.db

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     andre-net.com. root.andre-net.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      andre-net.com.
2       IN      PTR     andre-net.com.

root@tkj:/etc/bind# service bind9 restart


root@tkj:/etc/bind# nano /etc/resolv.conf
nameserver 202.64.32.2


root@tkj:/etc/bind# nslookup andre-net.com
Server:         202.64.32.2
Address:        202.64.32.2#53

Name:   andre-net.com
Address: 202.64.32.2


root@tkj:/etc/bind# nslookup 202.64.32.2
Server:         202.64.32.2
Address:        202.64.32.2#53

2.32.64.202.in-addr.arpa        name = andre-net.com.



Kalo error bisa di cek di :

root@tkj:/etc/bind# tail -f /var/log/syslog


Tulis komentar anda... Conversion Conversion Emoticon Emoticon

Thanks for your comment