DNS Service Provider for the
Java Naming and Directory InterfaceTM (JNDI) 1.2
Optional Package


Please send feedback to jndi@java.sun.com

Table of Contents


Introduction

This document is a companion to the main DNS Service Provider document. It describes how to use the DNS service provider with the Java 2 SDK, Standard Edition, versions 1.2.x and 1.3.x. The DNS service provider is not supported on earlier JDK releases, and comes bundled with the J2SDK v 1.4.


Java 2 SDK, Standard Edition, v 1.4

Software Dependencies

Software Installation

Since the DNS service provider is bundled as part of the J2SDK v 1.4, the software included in the DNS service provider's distribution file need not be installed.


Java 2 SDK, Standard Edition, v 1.3.x

Software Dependencies

Software Installation

  1. Unzip the distribution file to get a lib and a doc directory.
  2. If you are installing the DNS provider as an installed extension, copy the JARs dns.jar and providerutil.jar from the lib directory to the Java 2 SDK's jre/lib/ext directory.
  3. If you are not installing the DNS provider as an installed extension, copy the JARs dns.jar and providerutil.jar to their permanent location and add this location to your classpath.

Security Considerations

When a security manager has been installed, you must grant the application permission to connect to the DNS servers:

permission java.net.SocketPermission "host[:port]", "connect,accept";
for the host and port pairs supplied in the java.naming.factory.initial property, and in any URL string names supplied to context methods.

If you have not installed the DNS service provider as an installed extension (that is, dns.jar has not been installed in the Java 2 SDK's jre/lib/ext directory), perform the following additional step: