Receiving message "XCOMT0298E Unable to allocate remote transaction program" and "Txpi 224: gethostname error return value =nn" when trying to transfer from Non-Stop to the AS/400 using a DNS name. The works when using the IP address.
The HOST file didn't have the necessary information to resolve the DNS.
This case was addressed by making sure that the proper TCPIP configuration file was being used to resolve the new DNS name. It was necessary to use the RESCONF file and then the DNS was resolved and the transfer was resolved.
A value for =TCPIP^RESOLVER^NAME must be defined only if both the following conditions exist:
=TCPIP^RESOLVER^NAME Specifies the name of the resolver configuration file to be used to get name server information
add define =tcpip^resolver^file, file $system.ztcpip.resconf
info define ** displays all defined settings
NOTE: $system.ztcpip.resconf is the default if not specifies
$SYSTEM SYSTEM 12> fup copy $system.ztcpip.resconf
#
# Configuration for the resolver part. (used by gethostbyname ())
#
# domain xx.com
# search xx.com
# nameserver ipaddr
# nameserver ipaddr
# New entries after move from A to B
domain domain
nameserver ipaddr
nameserver ipaddr
NonStop Technical Library - HPE NonStop Documentation and Training