Ip Address 192.168.10.1
root@andre:~# apt-get install bind9 -y
root@andre:~# cd /etc/bind/
root@andre:/etc/bind# ls
bind.keys db.127 db.empty db.root named.conf.default-zones named.conf.options zones.rfc1918
db.0 db.255 db.local named.conf named.conf.local rndc.key
root@andre:/etc/bind# nano named.conf.local
zone "andre.com" {
type master;
file "/etc/bind/db.andre";
};
zone "1.10.168.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
root@andre:/etc/bind# cp db.local db.andre
root@andre:/etc/bind# cp db.127 db.192
root@andre:/etc/bind# nano db.andre
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA andre.com. root.andre.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS server.andre.com.
@ IN A 192.168.10.1
@ IN A 192.168.10.1
www IN A 192.168.10.1
mail IN A 192.168.10.1
root@andre:/etc/bind# nano db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA andre.com. root.andre.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS andre.com.
192 IN PTR andre.com.
root@andre:/etc/bind# /etc/init.d/bind9 restart
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments
(
Atom
)
Tulis komentar anda... Conversion Conversion Emoticon Emoticon