Correct way to set JVM DNS cache

Hello I'm trying to change the TTL as I believe it has something to do with creating issues on a remote cluster. (It just stops working after a few days). And I was wondering if this is the correct way to set the DNS TLL by editing the jvm.options file and dropping this argument:

## JVM DNS Caching
-Des.networkaddress.cache.ttl=600

THE JVM will start up with any argument there so I don't really know how to see if it's working either. (it'll include the arg on the process tree regardless)