System Properties

Hello all,

I just tried to temporarily set a system property within my module code, with unfavorable results:

System.setProperty("sun.net.spi.nameservice.nameservers", "8.8.4.4,8.8.8.8");

This is necessary because we want to make sure that domain names are not resolvable on the server… except by the module. Is there an Ignition-specific method of setting jvm system properties?

Thank you for your help.

You may need to set this much earlier, on system startup. You can add JVM parameters to ignition.conf. Look for the “wrapper.java.additional” lines.

It would look something like this:

wrapper.java.additional.9=-Dsun.net.spi.nameservice.nameservers=8.8.4.4,8.8.8.8

Thanks, I’ll try this out.