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!)
David.
Update: Found Regexp::Common::dns, though it isn't a supported component of the Regexp::Common tree.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Validation of the data fields of a DNS zone file
by gman (Friar) on Sep 20, 2010 at 15:03 UTC | |
by dwm042 (Priest) on Sep 20, 2010 at 16:17 UTC | |
|
Re: Validation of the data fields of a DNS zone file
by Krellis (Initiate) on Sep 21, 2010 at 23:06 UTC |