Gary There are complicated topics, very complicated topics and then there is the Communications Server IP component "resolver".
A gethostbyname() call is passed to the "resolver" address space. The "resolver" address space will need to access the "resolver setup statements" file but there need be no such file if the default method for setting up the "resolver" address space is used. Then the "resolver" address space will need to access the "resolver configuration file". The possibilities for accessing the "resolver configuration file" are the following, quoting from some notes I put together when this topic arose here a while ago: <quote> Resolver - GLOBALTCPIPDATA plus the first of the following% * Environment variable - RESOLVER_CONFIG * /etc/resolv.conf //SYSTCPD DD statement # x.TCPIP.DATA SYS1.TCPPARMS(TCPDATA) Resolver - DEFAULTTCPIPDATA TCPIP.TCPIP.DATA * only UNIX # x is userid for UNIX and userid/jobname/procname for MVS % If GLOBALTCPIPDATA used, the following are completely specified there: DomainOrigin/Domain NSInterAddr/NameServer NSPortAddr ResolverTimeOut ResolverUDPRetries ResolveVia Search SortList The following may be found in the "search order" data set: ALWAYSWTO DATASETPREFIX HOSTNAME LOADDBCSTABLES LOOKUP MESSAGECASE OPTIONS SOCKDEBUG SOCKNOTESTSTOR SOCKTESTSTOR TCPIPJOBNAME TCPIPUSERID TRACE RESOLVER TRACE SOCKET </quote> You'll see that SYS1.TCPPARMS(TCPDATA) is there quite independently from //SYSTCPD. Actually I was a little surprised to see hlq.HOSTS.SITEINFO mentioned rather than hlq.HOSTS.ADDRINFO as being the file presumably needed by a gethostbyname() call, this being the most likely call for a "client" program - but I don't know for sure and there are far too many assumptions there. Chris Mason ----- Original Message ----- From: "Gray, Larry - Larry A" <[EMAIL PROTECTED]> Newsgroups: bit.listserv.ibm-main To: <[email protected]> Sent: Wednesday, 22 November, 2006 4:07 PM Subject: Re: TCPIP Racf Protection for application? Didn't gethostbyname require, or at least used to require, the datasets below? My guess is the SYS1.TCPPARMS below might be the SYSTCPD card. The SYS1.TCPIP.HOSTS.SITEINFO would be based on DATASETPREFIX in SYSTCPD. Denis Gäbler wrote: > Hi, > > there is a COBOL application which is supposed to do TCP/IP calls > nowadays. When starting the application (TCPIPAPP) it requests READ > access to the following datasets: > SYS1.TCPIP.HOSTS.SITEINFO > SYS1.TCPPARMS > The application is started with the callers Userid. > > > Are there better solutions, ideas for that? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

