[jcifs] domain suffix

Michael B Allen mba2000 at ioplex.com
Thu Oct 19 01:26:19 GMT 2006


On Wed, 18 Oct 2006 19:43:48 +0000 (UTC)
Ying <yhe at devonit.com> wrote:

> hi, all,
> 
> JCIFS is very helpful for me to find out the domains and servers in the network.
> is there any way i can find out the domain suffix. for example in domain
> "domainA", there is a server called "serverA", how do I know whether it is
> "serverA.domainA.com" or "serverA.domainA.net" or something else.

The proper way to do this would be to use JNDI to look it up the name
in Active Directory.

> if I can find out the IP of the server "serverA", I can use "dig" to reverse
> lookup the hostname. Does anyone knows how to solve this problem in JCIFS? thank
> you very  much.

You can use UniAddress to get the IP of the name. InetAddress may also
give you a name for the IP (not sure about that).

Mike

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list