Parser in C # for zone file used by named / bind
I'm looking for a bind / name file parser in .NET C #. If I could import / convert, I would be interested too. Unfortunately not many, or I'm having trouble finding.
My goal is to make sure the zone file does not contain a syntax error before I pull it to the server.
Any help or hints would be appreciated. Thanks to
a source to share
There is no recommendation for the C # library (I am using C so I donβt know one), you can output the shell to the Win32 command line version named-checkzone
that is part of the BIND distribution.
Alternatively, the ldns
C library has a zone file reader if you can link native C code to a C # project.
a source to share
Have you tried sending dynamic updates to the binding server? This way, you can specify what you want to add to the zone file and tie in to handle the correct handling of your request. I saw a component that will allow you to connect to the bind server and send updates to it. I'll see if I can find control over you.
Refresh . You can use nsupdate.exe to send the file with the changes you want to make to the server
There is also a com component that can do this progamatically http://www.noeld.com/programs.asp?cat=dev#DnsLib
a source to share