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 Read two files CLIST & REXX 4
No new posts DB2 SQL query to read and update data... DB2 12
No new posts Read UTF-8 file in Cobol COBOL Programming 5
No new posts IMS SEGMENT READ ISSUE IMS DB/DC 0
No new posts How to read unpacked field created in... DFSORT/ICETOOL 12
Search our Forums:

Back to Top