How to identify a "raw" zone file
WBrown at e1b.org
WBrown at e1b.org
Fri Dec 2 14:03:54 UTC 2011
Evan wrote on 12/01/2011 05:44:02 PM:
> > I've looked at a few of them, and I noticed that all the ones I've
seen
> > start with the four-octet string "00 00 00 02". Is that sufficient?
>
> I'd recommend checking the next four octets as well; they'll be "00 00
00 00"
> or "00 00 00 01". The first of those is the format that's always been
used
> up to now; the second is the format that will be used in 9.9.0, starting
> with the next beta.
Wouldn't a text format zone file start with either printable or whitespace
characters? Checking for file format version may be useful for some
situations, but for simple text/raw determination is overkill. Coding a
test that includes a version could fail when next version is used.
Confidentiality Notice:
This electronic message and any attachments may contain confidential or
privileged information, and is intended only for the individual or entity
identified above as the addressee. If you are not the addressee (or the
employee or agent responsible to deliver it to the addressee), or if this
message has been addressed to you in error, you are hereby notified that
you may not copy, forward, disclose or use any part of this message or any
attachments. Please notify the sender immediately by return e-mail or
telephone and delete this message from your system.
More information about the bind-users
mailing list