I did not know that ovrdbf stdout would give me my desired result using NSLOOKUP.
DIG is out, since results are not 100%
Long term, which is better, NSLOOKUP with the OVRDBF, CLP API, RPG API?
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Tuesday, May 19, 2015 1:02 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Input IPv4 address - return DNS name
On 19-May-2015 07:50 -0500, Steinmetz, Paul wrote:
My intention is to build / find a utility that returns the DNS name in
batch mode.
NSLOOKUP works, but only in interactive mode, no out file option.
Presumably the NSLOOKUP output is directed to STDOUT, so redirect the output from the display to an output file... and then parse the data just as if running on a *nix or similar OS that thrives on effective screen-scraping utilities ;-) e.g.:
crtpf qtemp/mystdout rcdlen(132) mbr(ibm.com) lvlchk(*no)
ovrdbf stdout qtemp/mystdout lvlchk(*no) mbr(ibm.com)
ovrscope(*calllvl)
nslookup ibm.com /* data goes to qtemp/mystdout(ibm.com) */
--
Regards, Chuck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.