Cara Configurasi DNS di Ubuntu 15.10

Ahh.. mana cape.. coret blog ahh..
IP address : 192.168.7.2
Subnet : 255.255.255.0
Gateway : 192.168.7.1












configurasi bawaan db.local di /etc/bind/db.local

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
         2  ; Serial
    604800  ; Refresh
     86400  ; Retry
   2419200  ; Expire
    604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
@ IN A 127.0.0.1
@ IN AAAA ::1
configurasi bawaan db.255 di etc/bind/db.255
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
         1  ; Serial
    604800  ; Refresh
     86400  ; Retry
   2419200  ; Expire
    604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
Kita copy 2 file penting itu.
#cd /etc/bind
#ls
#cp db.local db.eenpahlefi 
#cp db.255 db.192
  Edit nano db.eenpahlefi
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA eenpahlefi.net. root.eenpahlefi.net. (
         1  ; Serial
    604800  ; Refresh
     86400  ; Retry
   2419200  ; Expire
    604800 ) ; Negative Cache TTL
;
@ IN NS eenpahlefi.net.
@ IN A 192.168.7.2
@ IN A 192.168.7.2
www IN A 192.168.7.2
mail IN A 192.168.7.2
ftp IN A 192.168.7.2
Edit nano db.192
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA eenpahlefi.net. root.eenpahlefi.net. (
         1  ; Serial
    604800  ; Refresh
     86400  ; Retry
   2419200  ; Expire
    604800 ) ; Negative Cache TTL
;
@ IN NS eenpahlefi.net.
2 IN PTR eenpahlefi.net.
Edit nano 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 "eenpahlefi.net" {
 type master;
 file "/etc/bind/db.eenpahlefi";
};

zone "7.168.192.in-addr.arpa" {
 type master;
 file "etc/bind/db.192";

};
Restart aplikasi bind nya
#/etc/init.d/bind9 restart
Edit resolver nya 
#nano /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.7.2 
Penulis Een Pahlefi,S.Kom

Subscribe to receive free email updates: