[jcifs] multiple DC via DNS
Dirk Becker
dbecker at pironet-ndh.com
Fri Apr 22 06:50:48 GMT 2005
Hi,
i tried to get a list of DC's via DNS rather than using WINS. I have a DNS entry like this:
>dig dcs.example.com
; <<>> DiG 9.3.0 <<>> dcs.example.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52038
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;dcs.example.com. IN A
;; ANSWER SECTION:
dcs.example.com. 10008 IN A 10.11.11.41
dcs.example.com. 10008 IN A 10.11.0.44
;; Query time: 2 msec
;; SERVER: 10.11.0.44#53(10.11.0.44)
;; WHEN: Fri Apr 22 08:37:43 2005
;; MSG SIZE rcvd: 70
using a simple java class produced the following result:
--- InetAddress.getByName() ---
host.getHostAddress():10.11.11.41
host.getHostName():dcs.example.com
host.getCanonicalHostName():dc-1.example.com
--- InetAddress.getAllByName() ---
1. host
host.getHostAddress():10.11.11.41
host.getHostName():dcs.example.com
host.getCanonicalHostName():dc-1.example.com
2. host
host.getHostAddress():10.11.0.44
host.getHostName():dcs.example.com
host.getCanonicalHostName():dc-2.example.com
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?
regards,
Dirk
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs
mailing list