|Welcome to the Monastery
Validation of the data fields of a DNS zone fileby dwm042 (Priest)
|on Sep 20, 2010 at 14:32 UTC
dwm042 has asked for the wisdom of the Perl Monks concerning the following question:
Are there any Perl resources for ways (regular expressions appreciated) for the validation of the various fields of a DNS zone file? In particular I'm interested in validation of the SOA header, but validation resources for the common RR entries would be much appreciated as well.
Things like the end of a CNAME record almost resemble a standard address, except for that period at the end of the name. Therefore, many common canned patterns are unavailable. Another example is the MNAME, which isn't quite a standard email address, and also should be terminated with a period (usually!)
Update: Found Regexp::Common::dns, though it isn't a supported component of the Regexp::Common tree.