srmm
(usa Debian)
Enviado em 18/10/2012 - 01:23h
Ola gente to tentando fazer o seguinte o dominio mais da esse erro
1º assim
# vim /etc/bind/named.conf.local
view "externa" {
match-clients { !192.168.107.0/24; !127.0.0.1; any; };
recursion yes;
zone "neguinhocachorrinhodownloads.com.br" {
type master;
file "db.neguinhocachorrinhodownloads.externa";
};
};
view "interna" {
match-clients { 192.168.107.0/24; 127.0.0.1; };
recursion yes;
zone "neguinhocachorrinhodownloads.com.br" {
type master;
file "db.neguinhocachorrinhodownloads.interna";
};
};
2º
# vim /var/cache/bind/db.neguinhocachorrinhodownloads.externa
$TTL 86400 ; default para todos os registros sem TTL
@ IN SOA ns1.neguinhocachorrinhodownloads.com.br. root.neguinhocachorrinhodownloads.com.br. (
2011073101; serial
8h ; refresh
1h ; retry
3d ; expire
3h); negative caching ttl
;
@ IN NS ns1.neguinhocachorrinhodownloads.com.br.
@ IN MX 10 mail.neguinhocachorrinhodownloads.com.br.
@ IN A 192.168.107.1
ns1 IN A 192.168.107.1
www IN A 192.168.107.1
ftp IN CNAME www
mail IN A 192.168.107.1
smtp IN CNAME mail
webmail IN CNAME mail
pop IN CNAME mail
imap IN CNAME mail
ldap IN CNAME ns1
3º
# vim /var/cache/bind/db.neguinhocachorrinhodownloads.interna
$TTL 86400 ; default para todos os registros sem TTL
@ IN SOA ns1.neguinhocachorrinhodownloads.com.br. root.neguinhocachorrinhodownloads.com.br. (
2011073101; serial
8h ; refresh
1h ; retry
3d ; expire
3h); negative caching ttl
;
@ IN NS ns1.neguinhocachorrinhodownloads.com.br.
@ IN MX 10 mail.neguinhocachorrinhodownloads.com.br.
@ IN A 192.168.107.3
ns1 IN A 192.168.107.3
www IN A 192.168.107.3
ftp IN CNAME www
mail IN A 192.168.107.3
smtp IN CNAME mail
webmail IN CNAME mail
pop IN CNAME mail
imap IN CNAME mail
ldap IN CNAME ns1
firewall IN A 192.168.107.1
datacenter IN A 192.168.107.159
dmz IN A 192.168.107.3
storage IN A 192.168.107.4
squeeze IN A 192.168.107.10
winxp IN A 192.168.107.20
win7 IN A 192.168.107.30
4º
# named-checkzone neguinhocachorrinhodownloads.com.br. /var/cache/bind/db.neguinhocachorrinhodownloads.interna
zone neguinhocachorrinhodownloads.com.br/IN: loaded serial 2011073101
OK
5º
# named-checkzone neguinhocachorrinhodownloads.com.br. /var/cache/bind/db.neguinhocachorrinhodownloads.externa
zone neguinhocachorrinhodownloads.com.br/IN: loaded serial 2011073101
OK
6º
# dig -t soa neguinhocachorrinhodownloads.com.br
; <<>> DiG 9.7.3 <<>> -t soa neguinhocachorrinhodownloads.com.br
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 12513
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;neguinhocachorrinhodownloads.com.br. IN SOA
;; AUTHORITY SECTION:
com.br. 900 IN SOA a.dns.br. hostmaster.registro.br. 2012101816 1800 900 604800 900
;; Query time: 43 msec
;; SERVER: 200.204.0.10#53(200.204.0.10)
;; WHEN: Thu Oct 18 01:09:46 2012
;; MSG SIZE rcvd: 115
Qual erro que esta faltando