craigw/dns-zonefile — pull request #1 by eam (2012-10-30 19:35:44+00:00)
Title: RP and class/ttl parsing fixups

* Add + as a valid email character for rule RP as many emails are of the
form x+y@example.com. This regex should probably be expanded even further.

* Begin to address error in parsing class/ttl entries. Per RFC-1035,
section 5.1. Format these entries may take any of the below forms:

foo 900 IN A 127.0.0.1
foo IN 900 A 127.0.0.1
foo IN A 127.0.0.1
foo 900 A 127.0.0.1
foo A 127.0.0.1

Note, this patch only corrects parsing for CNAME and SRV. It should be
applied to all RRs and I have not done so. You may want to change the
approach before applying it in the general case.