renato_pacheco
(usa Debian)
Enviado em 16/09/2009 - 21:43h
C vai deixar dessa forma aki:
// 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 "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "dnsDeBIAN" {
type master;
file "/etc/bind/db.DNSdebian";
};
zone "0.16.172.in-addr.arpa" {
type master;
file "/etc/bind/db.DNSdebian.reverse";
};
db.DNSdebian:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA DNSdebian. root.DNSdebian. (
252364 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS DNSdebian.
@ IN MX DNSdebian.
@ IN A 172.16.0.30
; @ IN AAAA ::1 <-- comentei essa linha pq eu não sei o q é isso... hehhe
Agora vc cria o arquivo db.DNSdebian.reverse dentro do /etc/bind
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA DNSdebian. root.DNSdebian. (
252364 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
DNSdebian. IN PTR 30
Fim...