Sample code - IP Address lookup
Posted: Fri Aug 07, 2009 2:30 pm
by Robert Barr >> Mon, 22 Jan 2001 5:10:58 GMT
The attached sample code is again in response to a client request for assistance - how do I translate an IP address to a DNS name?
In fact, the lookup is performed by the Windows nslookup command-line function. A shell() method redirects the output from this command to a file, then returns the file contents). The other methods handle nslookup input/output format. The lookup works both ways (provides the IP
address, given the domain name).
Platform: JADE 5.1.08, MS-Windows
(Note an NFS has been raised to request node.createExternalProcess() is enhanced to use stdin/stdout/stderr I/O devices as per Unix command convention).
------------------------------------------------------------------------- Aoraki Corporation Limited (Aoraki) believes that this software is accurate and reliable and has been prepared with care but can give no guarantee that the software will be free of defects or errors. No responsibility or liability, financial or otherwise, can be accepted for any consequences arising out of the use of this software including loss of profits, indirect, special or consequential losses or damages.
The attached sample code is again in response to a client request for assistance - how do I translate an IP address to a DNS name?
In fact, the lookup is performed by the Windows nslookup command-line function. A shell() method redirects the output from this command to a file, then returns the file contents). The other methods handle nslookup input/output format. The lookup works both ways (provides the IP
address, given the domain name).
Platform: JADE 5.1.08, MS-Windows
(Note an NFS has been raised to request node.createExternalProcess() is enhanced to use stdin/stdout/stderr I/O devices as per Unix command convention).
------------------------------------------------------------------------- Aoraki Corporation Limited (Aoraki) believes that this software is accurate and reliable and has been prepared with care but can give no guarantee that the software will be free of defects or errors. No responsibility or liability, financial or otherwise, can be accepted for any consequences arising out of the use of this software including loss of profits, indirect, special or consequential losses or damages.