DNSAgent icon indicating copy to clipboard operation
DNSAgent copied to clipboard

Test and validate configuration files at startup

Open xakraz opened this issue 10 years ago • 1 comments

Like some Unix software, it would be nice to have some preventive "checks" on configuration files at startup or before restarting DNSAgent when running as a service to prevent errors...

xakraz avatar Dec 31 '15 13:12 xakraz

you could patch in https://github.com/JamesNK/Newtonsoft.Json and do something like http://stackoverflow.com/questions/14977848/how-to-make-sure-that-string-is-valid-json-using-json-net or use the 4.5 stuff that is also listed in that answer. Another alternative would be to have a rough cascade of regexp that could catch obvious mismatched pairs et cetera.

twobob avatar Apr 30 '17 00:04 twobob