Support Center Home

DNS Scripting Methods

The collector includes dnsjava ( to allow scripting of DNS based objects.

See for the full java documentation.

As a simple example, a datasource could use a script such as the below to ensure that the local DNS resolvers are working:

import org.xbill.DNS.*;

records = new Lookup("", Type.MX).run()

records.each() {
println it

return (0);