In COBOL, for the TCP/IP socket-to-socket calls, we usually use the destination IP address and port number to connect to the desitination system. I would like to know, in COBOL TCP/IP socket-to-socket calls whether we can use the DNS host name to connect to the destination system instead of using the IP address and port number?
Any feedback on this topic is greatly appreciated!
infocat 060000PG7M89 Posts
Re: TCP/IP Socket to Socket2012-05-14T15:48:56ZThis is the accepted answer. This is the accepted answer.Check out the GETHOSTBYNAME function of EZASOKET:
Again, I've not used it myself, and it looks a bit convoluted, but...