[jcifs] Network name resolve time

Michael B Allen ioplex at gmail.com
Fri Aug 6 14:23:15 MDT 2010


Hi yankings,

Your program doesn't make any sense. You set resolveOrder to do WINS
but you don't set a WINS server. Then the next method in the list is
DNS but the name given is not DNS name.

In general, you should no longer be using NetBIOS names. You should
use DNS only and always use a fully qualified DNS hostnames. Sometimes
you can use only the first label of the DNS hostname but in this case
your OS must be configured with a suitable DNS search suffix.

A proper JCIFS program should probably just set resolveOrder=DNS. But
LMHOSTS and WINS are still enabled by default just in case someone's
trying to connect to a Windows 98 machine.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


On Thu, Aug 5, 2010 at 10:17 PM, yankings <yankings at hotmail.com> wrote:
>
> Hi,
>
> I would like to upgrade the existing program with latest jcifs version
> (1.1.11 to 1.3.14) , but the network resolve time is greatly different.
> Here is the jcifs details:
>
> Here is my testing program, the performance on 1.1.11 is far better than
> 1.3.14.  It take less than 1 second to complete process, version 1.3.14
> needs 2x seconds??
>
> Am i missing some properties configuration for 1.3.14?
>
>    public static void main(String args[])  {
>          Date startDtm = new Date();
>          Config.setProperty( "jcifs.resolveOrder", "LMHOSTS,WINS,DNS,BCAST"
> );
>          try {
>              UniAddress mydomaincontroller = UniAddress.getByName(
> "testServerA" );
>              NtlmPasswordAuthentication mycreds = new
> NtlmPasswordAuthentication( "testDomain", "testUser", "testPassword" );
>              SmbSession.logon( mydomaincontroller, mycreds );
>              System.out.println("Completed normally");
>
>              Date endDtm = new Date();
>              Double result = (endDtm.getTime()-startDtm.getTime())/1000.0;
>              System.out.println(result);
>          } catch( Exception see ) {
>              // NETWORK PROBLEMS?
>              see.printStackTrace();
>          }
>    }
>
>
> --
> View this message in context: http://old.nabble.com/Network-name-resolve-time-tp29356405p29356405.html
> Sent from the Samba - jcifs mailing list archive at Nabble.com.
>
>


More information about the jCIFS mailing list