DNS name parser 1.2.1

DNS name parser is a Java utility library for parsing dns names, ip and hw addresses.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
2.9/5 17
DEVELOPED BY:
Dmitri Priimak
HOMEPAGE:
www.stanford.edu
CATEGORY:
ROOT \ Internet \ DNS
DNS name parser is a Java utility library for parsing dns names, ip and hw addresses.

Synopsis

import su.netdb.parser.*;

Parser parser = new Parser();

Hashtable result = parser.parse(str);

System.out.println("string: "+result.get("string"));
System.out.println("hw: "+result.get("hw"));
System.out.println("name: "+result.get("name"));
System.out.println("domain: "+result.get("domain"));
System.out.println("ip_low: "+result.get("ip_low"));
System.out.println("ip_high: "+result.get("ip_high"));

"DNS name parser" is an utility library created to be used in a search application. Given a single input field its function is to differentiate between several types of possible input strings. Namely if it a dns name, IP address (exact, ip range or ip with wildcards) or hardware address. The result of the parsing is a Hashtable with possible keys "string", "hw", "name", "domain", "ip_low" and "ip_high".

Requirements:

· Java 1.5 or higher.
· Jakarta ORO.

Note that once unpacked you will probably need to modify SETTINGS file, which describes location of JDK and other settings

Last updated on July 20th, 2007

#name parser #Java library #DNS parser #DNS #name #parser #Java

Add your review!

SUBMIT