[jcifs] multiple DC via DNS

Frode E. Moe frode at CoreTrek.no
Fri Apr 22 07:08:49 GMT 2005

On Fri, Apr 22, 2005 at 08:50:48 +0200, Dirk Becker wrote:
> Hi,
> i tried to get a list of DC's via DNS rather than using WINS. I have a DNS entry like this:
> dcs.example.com.   10008   IN      A
> dcs.example.com.   10008   IN      A
> I set the jcifs loglevel to 10. Only the first DC (that is returned by InetAddress.getByName()) was used, so my question is:
> Is fetching a DC-list that way supported? 

Sun's Java in general has a pretty aggressive DNS cache built-in, which
keeps resolved hosts around forever. You can try to disable the cache,
see for example: 
and the "InetAddress Caching" paragraph here:

More information about the jcifs mailing list