-Tengo esto en named.conf.local:
Código:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "sergio.com" {
type master;
file "/etc/bind/db.sergio.com";
};
zone "0.1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/192.168.1.0.rev";
};
-Mi archivo db.sergio.com sacado de db.local:
Código:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA servidor.sergio.com. root.sergio.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
sergio.com. IN NS servidor.sergio.com.
sergio.com. IN A 192.168.1.141
servidor IN A 192.168.1.141
sergio-mint.sergio.com. IN A 192.168.1.142
www IN CNAME sergio.com.
ftp IN CNAME sergio.com.
mail IN CNAME sergio.com.
pc1-mint IN CNAME sergio-mint.sergio.com.
dns-local IN CNAME sergio.com.
-Y mi archivo 192.168.1.0.rev sacado de db.127:
Código:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
0.1.168.192 IN SOA servidor.sergio.com. root.sergio.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
0.1.186.192.in-addr.arpa. IN NS servidor.sergio.com.
141.1.168.192.in-addr.arpa. IN PTR servidor.sergio.com.
142.1.168.192.in-addr.arpa. IN PTR sergio-mint.sergio.com
Y si hago un
Código:
sudo named-checkzone 0.1.168.192.in-addr.arpta /etc/bind/192.168.1.0.rev
Código:
/etc/bind/192.168.1.0.rev:5: SOA record not at top of zone (0.1.168.192.0.1.168.192.in-addr.arpta)
/etc/bind/192.168.1.0.rev:12: ignoring out-of-zone data (0.1.186.192.in-addr.arpa)
/etc/bind/192.168.1.0.rev:13: ignoring out-of-zone data (141.1.168.192.in-addr.arpa)
/etc/bind/192.168.1.0.rev:14: ignoring out-of-zone data (142.1.168.192.in-addr.arpa)
zone 0.1.168.192.in-addr.arpta/IN: loading from master file /etc/bind/192.168.1.0.rev failed: not at top of zone
zone 0.1.168.192.in-addr.arpta/IN: not loaded due to errors.