Use DNSJAVA as DNS SPI

cusax-fix
Ingo Bauersachs 14 years ago
parent 5bbbd6c31a
commit b628cdc642

@ -22,7 +22,8 @@ org.osgi.framework.system.packages.extra= \
sun.net.util; \ sun.net.util; \
sun.net.dns; \ sun.net.dns; \
sun.security.action; \ sun.security.action; \
sun.security.pkcs11; sun.security.pkcs11; \
org.xbill.DNS
felix.auto.start.10= \ felix.auto.start.10= \
reference:file:lib/bundle/org.apache.felix.bundlerepository-1.6.4.jar reference:file:lib/bundle/org.apache.felix.bundlerepository-1.6.4.jar

Binary file not shown.

@ -58,6 +58,10 @@ public class SIPCommunicator
public static void main(String[] args) public static void main(String[] args)
throws Exception throws Exception
{ {
// this needs to be set before any DNS lookup is run (which includes the
// Java SecurityManager)
System.setProperty("sun.net.spi.nameservice.provider.1", "dns,dnsjava");
String version = System.getProperty("java.version"); String version = System.getProperty("java.version");
String vmVendor = System.getProperty("java.vendor"); String vmVendor = System.getProperty("java.vendor");
String osName = System.getProperty("os.name"); String osName = System.getProperty("os.name");

Loading…
Cancel
Save