monique7
(usa Arch Linux)
Enviado em 14/05/2011 - 18:59h
Boa Noite Pessoal.
Gostaria da ajuda de vcs quanto ao bind9 no debian 6. Já li vários artigos e revirei confs. E não sei o que pode estar havendo com meu dns, que não apresenta erro no log, mas que não resolve nomes.
Meu cenário é o seguinte.
Na minha vmware instalei debian e win xp. A vmware esta configurado como hosty only private. Não sei se isso é importante. Pois, coloquei como brigde e nat. ambos pegou configuração do meu roteador. Ou seja configuração do dhcp do roteador. Sabendo -se que no debian eu instalei dhcp tambem. por isso optei por host only private. Ate aqui tudo bem, pq tanto o xp e debian se pingam por ip sem problemas.
Bom postando meus confs para entenderem.
Estou tentando fazer apenas um DNS INTERNO!!!
resolv.conf
domain teste.com
search teste.com
nameserver 192.168.232.128
hosts.conf
127.0.0.1 localhost.localdomain localhost
192.168.232.128 debian.teste.com.br teste
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
db.teste.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.teste.com. root.teste.com. (
130520112 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.teste.com.
ns1 IN A 192.168.232.128
db.232.168.192.in-addr-arpa
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.teste.com. root.teste.com. (
130520111 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.teste.com.
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
include "/etc/bind/rndc.key";
zone "teste.com" {
type master;
file "/etc/bind/db.teste.com";
};
zone "232.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.232.168.192.in-addr.arpa";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
named.conf.opoptions {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See
http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
//listen-on-v6 { any; };
allow-query { 127.0.0.1; 192.168.232.128; };
listen-on port 53 { any; };
allow-transfer { none; };
};
log do syslog
root@debian:/etc/bind# tail -f /var/log/syslog
May 14 18:14:57 debian named[1757]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
May 14 18:14:57 debian named[1757]: command channel listening on 127.0.0.1#953
May 14 18:14:57 debian named[1757]: zone 0.in-addr.arpa/IN: loaded serial 1
May 14 18:14:57 debian named[1757]: zone 127.in-addr.arpa/IN: loaded serial 1
May 14 18:14:57 debian named[1757]: zone 232.168.192.in-addr.arpa/IN: loaded serial 130520111
May 14 18:14:57 debian named[1757]: zone 255.in-addr.arpa/IN: loaded serial 1
May 14 18:14:57 debian named[1757]: zone teste.com/IN: loaded serial 130520112
May 14 18:14:57 debian named[1757]: zone localhost/IN: loaded serial 2
May 14 18:14:57 debian named[1757]: managed-keys-zone ./IN: loaded serial 9
May 14 18:14:57 debian named[1757]: running
Minha saida do nslookup
^Croot@debian:/etc/bind# nslookup
> server teste
Default server: teste
Address: 192.168.232.128#53
minha saida do dig
Croot@debian:/etc/bind# dig -x 192.168.232.128
; <<>> DiG 9.7.2-P3 <<>> -x 192.168.232.128
;; global options: +cmd
;; connection timed out; no servers could be reached
Quando estou no xp, da vmware, pingo o nome da maquina debian, e pinga normal... se eu pingo teste de lá, da time out, mas se pingo local o teste no debian ele me retorna sem problemas..
Poderiam me ajudar quanto a isso???
Desde já agradeço