Do you mean a CIDR calculator?

If so, I put a rudimentary implementation into [net] 2.0 last year.

See the implementation here:

http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/util/SubnetUtils.java?revision=740965&view=markup

And example usage:

http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/examples/SubnetUtilsExample.java?revision=658518&view=markup

Is that what you mean?

Rory

Stefano Bagnara wrote:
Rory Winston ha scritto:
Hi Robert

Sounds great .... a DNS client was one area I felt could be added to [net] for a while now (the other being ssh/scp support).

Can you point me to the existing client code in james?

If I remember correctly the code Robert is talking about is not a DNS client but a Network Matching utility (e.g: is 127.5.2.6 part of 127.0.0.0/8 network ?). It uses some java.net.InetAddress function, but does not act as a DNSclient.

About DNS clients, if you need a dns client that uses correct caching (java itself have plenty of issues with DNS caches) dnsjava is already around and very solid.

Stefano

Cheers
Rory

Robert Burrell Donkin wrote:
over in james, we have some useful DNS client code. sufficiently useful
for the qpid to enquire about the possibility of sharing it:
http://markmail.org/thread/u4n4q5f2q7wyq2vf. i think it should probably
be in scope for commons-net, though DNS is not (at the moment) a
supported protocol.

there are some wrinkles (aren't there always?) in that the code in
question has been rewritten for 3.x to use a separate DNS service to
avoid know limitations of the java DNS client implementation. it uses
http://sourceforge.net/projects/dnsjava/ (unfortunately this isn't very
actively maintained).
but the 2.x version is solid enough and is very suitable for a
microlibrary

i'd be willing to help out (if that'd be helpful) and possible a few
other committers from james and qpid may be willing to help maintain
this code as well.

opinions?

- robert



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to