Maybe in a future version there could be a way to add key/values to the map created in DomainKeyUtil#getEnvironment()?
This way developers can change DNS that is being used.
fx if a developer can add:
environment.put("java.naming.provider.url", "dns://8.8.8.8");
It use google dns for looking up the record.
Alternative a explicit dns api could be added to the library.
Maybe in a future version there could be a way to add key/values to the map created in DomainKeyUtil#getEnvironment()? This way developers can change DNS that is being used. fx if a developer can add: environment.put("java.naming.provider.url", "dns://8.8.8.8"); It use google dns for looking up the record.
Alternative a explicit dns api could be added to the library.