Rob,
Check out these NSLOOKUP results with OVRDBF.
NSLOOKUP HOSTNAME('129.42.38.1')
Server:10.5.2.33
Address:10.5.2.33#53
Non-authoritative answer:
1.38.42.129.in-addr.arpaname = redirect.www.ibm.com.
Authoritative answers can be found from:
****** END OF DATA ******
NSLOOKUP HOSTNAME('208.87.182.65')
Server:10.5.2.33
Address:10.5.2.33#53
Non-authoritative answer:
65.182.87.208.in-addr.arpaname = gdweb3.dekko.com.
Authoritative answers can be found from:
****** END OF DATA ******
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Tuesday, May 19, 2015 2:00 PM
To: Midrange Systems Technical Discussion
Subject: RE: Input IPv4 address - return DNS name
What would long term have to do with this? Possibilities include:
Changing your primary language and no longer getting "from server" in English? Or distributing to customers in other localities?
Converting CL to DOS batch file and using this on your PC and thus making the use of APIs hard?
Suspecting possible reformat of "from server" layout depending on release of OS you are running?
Suspecting possible reformat of "from server" layout depending on OS release of DNS server or end point?
IPv6 vs IPv4?
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: "Steinmetz, Paul" <PSteinmetz@xxxxxxxxxx>
To: "'midrange-l@xxxxxxxxxxxx'" <midrange-l@xxxxxxxxxxxx>
Date: 05/19/2015 01:46 PM
Subject: RE: Input IPv4 address - return DNS name
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
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.