IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to read IPv6 from ADDR_INFO in EZBREHST.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sundaralingam

New User


Joined: 07 Mar 2021
Posts: 2
Location: INDIA

PostPosted: Tue Jun 29, 2021 2:10 pm
Reply with quote

Hi all,

I would like to find the IPV6 address from DNS. So I have used the GETADDRINFO
XC ADDR_INFO(addrinfo_len),ADDR_INFO CLEAR OUT ALL HINTS
LA R7,AI_ADDRCONFIG REQUEST THE CANONICAL NAME
ST R7,ai_flags SAVE THE HINT FLAGS
LA R7,ADDR_INFO POINT TO THE HINTS ADDRINFO
ST R7,HINTS SAVE THE ADDRESS OF THE HINTS
LA R7,0 LENGTH OF SERVICE NAME
ST R7,SERVNAMEL SAVE THE SERVICE NAME LENGTH.


EZASMI TYPE=GETADDRINFO, *
NODE=HOSTNAME, *
NODELEN=NODENAMEL, *
SERVICE=SERVNAME, SERVICE GETTING INFORMATION FOR *
SERVLEN=SERVNAMEL, *
HINTS=HINTS, *
RES=RESULT_ADDRINFO, RETURNED ADDRESS INFORMATION *
CANNLEN=CANNAMEL, LENGTH OF CANONICAL NAME *
RETCODE=A1, * SZ 63
ERRNO=A2, *
ERROR=ERROR

Here resolver is working fine, But the addr_info detail is not mapping correctly.
Could someone please let me know how to get the IPv6 address from EZBREHST macro.

Thanks in advance
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts ICETOOL to Read records SMF CEF it is... DFSORT/ICETOOL 4
No new posts Read a flat file and update DB2 table JCL & VSAM 2
Search our Forums:

Back to Top