› Foros › PC › Software libre
// 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 "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including "MUSEUM" and "DE", and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
// include "/etc/bind/named.conf.local";
zone "[b]midominio.com[/b]" {
type master;
[b]file "/etc/bind/db.midominio.com";[/b]
};
options {
directory "/var/cache/bind";
[...]
forwarders {
DNS1;
DNS2;
};
auth-nxdomain no; # conform to RFC1035
};
$TTL 604800
@ IN SOA midominio.com. hostmaster.midominio.com. (
2006071801 ; Serial
10800 ; Refresh
7200 ; Retry
1296000 ; Expire
172800 ) ; Negative Cache TTL
;
@ IN NS ns0.midominio.com.
@ IN TXT "Servidor"
@ IN HINFO "Servidor privado" "lan interno"
;
@ IN A IP_del_servidor
* IN A IP_del_servidor
Los problemas que más nos cuesta resolver, normalmente son los más chorras de todos, ¡jaja! Así que no te preocupes... es normal .ashitaka escribió:PD: Qué triste, con lo fácil que era la solución a mi problema y yo partiéndome el craneo tanto...
Raharu escribió:Respuesta para que Stolz haga su copypaste xD.
PD: ¿El foro esta limitado a 1000 carácteres por post? Me parece algo cutre
Se me olvido un ceroRaharu escribió:Respuesta para que Stolz haga su copypaste xD.
PD: ¿El foro esta limitado a 1000 carácteres por post? Me parece algo cutre
options {
directory "/var/bind";
listen-on-v6 { none; };
listen-on { any; };
pid-file "/var/run/named/named.pid";
};
// Vista Interna para la red local
view "internal" {
match-clients { 192.168.0.0/24; 192.168.1.0/24; 127.0.0.0/24; };
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no;
};
zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};
zone "TuDominio.foo" {
type master;
file "pri/TuDominio.foo.internal.zone";
};
};
//Vista externa
view "external" {
match-clients { any; };
recursion no;
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no;
};
zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};
zone "TuDominio.foo" {
type master;
file "pri/TuDominio.foo.zone";
};
}