Come join our live training webinar every other Wednesday at 11am PST and hear LogicMonitor experts explain best practices and answer common questions. We understand these are uncertain times, and we are here to help!
The Collector includes dnsjava (dnsjava.org) to allow scripting of DNS based objects.
To determine which version of dnsjava is installed in your environment, navigate to the Collector installation folder and verify the version installed:
See https://github.com/dnsjava/dnsjava for documentation on the version of dnsjava installed in your environment.
As a simple example, a datasource could use a script such as the below to ensure that the local DNS resolvers are working:
records = new Lookup("gmail.com", Type.MX).run()