On Tue, Mar 3, 2020 at 11:32 AM don isenstadt <[email protected]>
wrote:

> Hello..we have many users who are still using port 23 unsecured..so we can
> easily identify them with a display tcpip command po=23.  The list of ip
> addresses needs to be translated to a workstation name because the ip
> addresses are volitile. Ping -a does not work on the mainframe.  We want
> the command to be run from the mainframe.
> Thanks,
> -don
>
>
In order to do this, the z/OS system must use a DNS server (here we use
SYS1.LIH1.PARMLIB(TCPDATA) with the IP of the DNS server being specified in
the NSINTERADDR statement). The DNS server here is maintained by the
Network ("open") people. Most of the IP addresses have a "reverse DNS
lookup" entered. So we can do something like this on TSO:

NSLOOKUP 10.170.30.10

and get:

EZB3170I Server:  nrhdomp002.uicnrh.dom
EZB3172I Address:  10.170.5.9

EZB3170I Name:    lih1.uicnrh.dom
EZB3172I Address:  10.170.30.10


back to the TSO session. This uses the "gethostbyaddr()" function.

C Ref:
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.hala001/maphost.htm
HLASM Ref:
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.hala001/mgbyad.htm
REXX Ref:
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.hala001/rexx_gethostbyaddr_r.htm




-- 
People in sleeping bags are the soft tacos of the bear world.
Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to