For testing we have a DNS server that will respond with dummy records. Previously we could make java use our DNS server (here it is just using local host) by using:
"-Dsun.net.spi.nameservice.nameservers=127.0.0.1",
"-Dsun.net.spi.nameservice.provider.1=dns,sun",
This no longer works under jdk11. Is it possible to specify the DNS server to use under jdk11? If so how?
Edit: I also attempted:
-Djava.naming.provider.url=dns://127.0.0.1
from https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/jdk.naming.dns/share/classes/com/sun/jndi/dns/DnsContextFactory.java but that did not work either.