Hola, llevo 2 semanas documentandome sobre Bind DNS y e conseguido avanzar, pero no consigo hacerme con el.
El equipo en el que esta instalado tiene una distribucion de Debian.
Aqui os muestro las configuraciones que he realizado y los resultados obtenidos:
La direccion del servidor es:62.43.207.141
================================================== ==============
/etc/bind/db.local
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind/README.Debian for information on the
// structure of BIND configuration files in Debian for BIND versions 8.2.1
// and later, *BEFORE* you customize this configuration file.
//
include "/etc/bind/named.conf.options";
// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
category cname { null; };
};
// 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";
};
// add local zone definitions here
include "/etc/bind/named.conf.local";
zone "cervera.com" {
type master;
file "/etc/bind/ db.cervera.com";
};
================================================== ==============
================================================== ==============
/etc/bind/db.cervera.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA cervera.com. root.cervera.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS ns1.cervera.com.
@ IN A 62.43.207.141
================================================== ==============
================================================== ==============
dig @localhost cervera.com
; <<>> DiG 9.3.4 <<>> @localhost cervera.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4340
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;cervera.com. IN A
;; ANSWER SECTION:
cervera.com. 7101 IN A 206.191.140.42
;; AUTHORITY SECTION:
cervera.com. 5373 IN NS NS58.WORLDNIC.com.
cervera.com. 5373 IN NS NS57.WORLDNIC.com.
;; ADDITIONAL SECTION:
NS58.WORLDNIC.com. 162952 IN A 205.178.189.29
NS57.WORLDNIC.com. 162952 IN A 205.178.190.29
;; Query time: 5 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jul 24 13:06:54 2007
;; MSG SIZE rcvd: 124
================================================== ==============
Cuando realizo el "dig" no se porque lo envia a esos servidores en vez de al mio.
Pueden alludarme??
Muchas gracias por adelantado