Sun Java System Web Server 7.0 Update 1 NSAPI Developer's Guide

net_ip2host() Function

The net_ip2host function transforms a textual IP address into a fullyqualified domain name and returns the name.


Note –

This function works only if the DNS directive is enabled in the magnus.conf file.


Syntax

char *net_ip2host(char *ip, int verify);

Return Values

A new string containing the fullyqualified domain name if the transformation is accomplished, or NULL if the transformation is not accomplished.

Parameters

char *ip is the IP address as a character string in dotted-decimal notation: nnn.nnn.nnn.nnn.

int verify, if nonzero, specifies that the function should verify the fullyqualified domain name. Though this verification requires an extra query, you should use it when checking the access control.