Allow comments after $ORIGIN etc
Allow underscore and dot in first record field
Support record entries with multiline parameters in parentheses

It's kind of ugly implemented by duplication most of the resource record matching code but at least it works and it's really necessary for every SOA record I encountered.