I am using BIND 9.1.1 to operate my dns server. Recently, when I try to run
named-checkzone to verify my zone record, I always get the following output:
dns_master_load: zone.com:20: ignoring out-of-zone data
dns_master_load: zone.com:21: ignoring out-of-zone data
dns_master_load: zone.com:22: ignoring out-of-zone data
dns_master_load: zone.com:23: ignoring out-of-zone data
dns_master_load: zone.com:24: ignoring out-of-zone data
dns_master_load: zone.com:25: ignoring out-of-zone data
dns_master_load: zone.com:26: ignoring out-of-zone data
..
dns_master_load: zone.com:397: ignoring out-of-zone data
dns_zone_load: zone zone.com/IN: could not find NS and/or SOA records
dns_zone_load: zone zone.com/IN: has 0 SOA records
dns_zone_load: zone zone.com/IN: no NS records
However, when I try to restart my zone file, BIND start up successfully. I
am not sure what does this "Ignoring out-of-zone" message mean and what's
wrong with my zone file? Can someone help please?
Here is my zone file:
$ORIGIN .
$TTL 3600 ; 1 hour
zon.com IN SOA pridns.zone.com. root.zone.com. (
2001042701 ; serial
7200 ; refresh (2 hours)
3600 ; retry (1 hour)
3600 ; expire (1 hour)
3600 ; minimum (1 hour)
)
NS ns1.zone.com.
NS ns2.zone.com.
NS ns3.zone.com.
A x.x.x.x
MX 10 mail1.zone.com.
MX 20 mail2.zone.com.
MX 30 mail3.zone.com.
MX 40 mail4.zone.com.
MX 40 mail5.zone.com.
$ORIGIN mediaring.com.
Host1 A x.x.x.x
Host2 A x.x.x.x
Host3 A x.x.x.x
ns1 A x.x.x.x
ns2 A x.x.x.x
ns3 A x.x.x.x
mail1 A x.x.x.x
mail2 A x.x.x.x
mail3 A x.x.x.x
mail4 A x.x.x.x
mail5 A x.x.x.x
- Kevin
Danny> Hi I am using BIND 9.1.1 to operate my dns server.
Danny> Recently, when I try to run named-checkzone to verify my
Danny> zone record, I always get the following output:
Danny> dns_master_load: zone.com:20: ignoring out-of-zone data
Danny> dns_master_load: zone.com:21: ignoring out-of-zone data
Danny> dns_master_load: zone.com:22: ignoring out-of-zone data
Danny> dns_master_load: zone.com:23: ignoring out-of-zone data
Danny> dns_master_load: zone.com:24: ignoring out-of-zone data
Danny> dns_master_load: zone.com:25: ignoring out-of-zone data
Danny> dns_master_load: zone.com:26: ignoring out-of-zone data
That's because you're trying to load data for the mediaring.com zone
in a zone file for another zone. [This is what the $ORIGIN line is all
about.] Next time, post the actual file so we see what your name
server sees. Don't edit the file. The "file" you posted appears to be
for zone.com or zon.com, but these zones exist and are quite different
from the stuff you posted. If you want your server to answer for
mediaring.com, create a zone file containing RRs for just that zone
and add a suitable zone{} statement for it to named.conf.
Also re-read the man page for named-checkzone and you are
most probably driving wrong as well.
e.g.
named-checkzone <zone> <file>
unless <zone> and <file> are *exactly* the same you have to
have *both* arguements.
Mark
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.A...@nominum.com