Sun Java System Web Proxy Server 4.0.3 2006Q2 NSAPI Developer's Guide

net_ip2host

The net_ip2host function transforms a textual IP address into a fully-qualified domain name and returns it.


Note –

This function works only if the DNS directive is enabled in the obj.conf file. For more information, see Sun Java System Web Proxy Server 4.0.2 Configuration File Reference.


Syntax

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

Returns

A new string containing the fully-qualified domain name if the transformation was accomplished, or NULL if the transformation was 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 fully-qualified domain name. Though this requires an extra query, you should use it when checking access control.