renato_pacheco
(usa Debian)
Enviado em 22/09/2009 - 11:11h
Quase... na verdade vc configura na unha tudo no seu Bind. Não precisa configurar máquina por máquina. O q vc precisa configurar nas máquinas é o /etc/resolv.conf, q apontaremos para o servidor aonde q tá instalado o Bind, sacou?
Uma boa notícia: consegui fazê-lo funcionar aki. O problema era o serial. Esse número não pode se repetir das demais zonas. Vou colocar o meu exemplo aki, ok? Ah! Outra coisa: no Debian, ele possui 4 named.conf: named.conf.local (zonas locais, mas já estão nas default-zones), o named.conf (esse vc inclui os outros named.conf's), o named.conf.options (opções, q não precisam ser mexidas) e o named.conf.default-zones (q é aonde vc configura as zonas d fato). Vou postar todos eles aki, seguem os exemplos:
named.conf
// 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";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
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";
named.conf.default-zones
// 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 "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
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 dnsdebian
;
$TTL 604800
@ IN SOA ns1.dnsdebian. root.dnsdebian. (
220920091 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.dnsdebian.
@ IN MX 5 mail.dnsdebian.
ns1 IN A 172.16.0.23
mail IN CNAME ns1.dnsdebian.
@ IN AAAA ::1
db.dnsdebian.reverse
; BIND reverse data file for empty rfc1918 zone
;
; DO NOT EDIT THIS FILE - it is used for multiple zones.
; Instead, copy it, edit named.conf, and use that copy.
;
$TTL 86400
@ IN SOA ns1.dnsdebian. root.dnsdebian. (
220920091 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS ns1.dnsdebian.
23 IN PTR ns1.dnsdebian.
Note q o n° serial do db.dnsdebian tem q ser igual ao db.dnsdebian.reverse e, ao msm tempo, tem d ser diferente das outras zonas.