A bit of background - I am building a tool which apart from doing a number of things also allows the user to manage Azure DNS. In my application there's a feature where a user could export the DNS settings to create a zone file. Using various resources on the Internet (e.g. https://en.wikipedia.org/wiki/Zone_file#File_format and https://www.rfc-editor.org/rfc/rfc1035), I am able to create a zone file.
What I am struggling with is how can I validate if the zone file I created is proper or not based on RFC 1035. Is there a programmatic way of validating a zone file? Or may be some PowerShell script or a system/3rd party tool that I can use to validate the file.
As a side note, I used GoDaddy's web interface to import the zone file and it worked just fine.