|
The regular command NSLOOKUP works in CL. The bad news is that it is required to be interactive, but that may be enough for your needs? The CL I used to test it is: PGM /* must be interactive..... */ /* This Program does NSLOOKUP */ DCL VAR(&IP1) TYPE(*CHAR) LEN(50) + VALUE('www.midrange.com') NSLOOKUP HOSTNAME(&IP1) ENDPGM and the response I got was: "Nonauthoritative answer: Name: midrange.com Address: 206.239.161.179 Aliases: www.midrange.com Press ENTER to end terminal session." _______________________ Booth Martin boothm@earth.goddard.edu http://www.spy.net/~booth _______________________ "Silvio Santos" <Silvio.Santos@brainag.com> Sent by: owner-rpg400-l@midrange.com 12/17/1999 04:10 PM Please respond to RPG400-L To: RPG400-L@midrange.com cc: Subject: Host name associated with an IP address Hi! Its possible to know the host name associated with an IP address, in a CL or an RPG/400 pgm ? Is there any API that can do this ? Any help would be great. TIA, Silvio. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.