__ipDomainName() — Retrieve the resolver supplied domain name

Standards

Standards / Extensions C or C++ Dependencies
Language Environment both OS/390 V2R9

Format

#include <__ftp.h>

char *__ipDomainName(void);

General description

Lets an application get the values which IP address resolution initialization established for the domain name (supplied by keywords Domain or DomainOrigin).

Returned value

If successful, __ipDomainName() returns the NULL-terminated character string which is the name found for the domain name or a NULL string if no domain name was found in the IP address resolution initialization.

If unsuccessful, __ipDomainName() returns NULL and stores one of the following error values in h_errno. The __ipDomainName() function is only unsuccessful if IP address resolution initialization fails to complete.
Error Code
Description
NO_RECOVERY
An error occurred that will continue to fail if tried again. Storage could not be obtained for this thread to contain the _res structure.
TRY_AGAIN
An error occurred while initializing the __res_state structure name selected, which can be retried.

Related information