Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

session_maxdns

The session_maxdns function resolves the IP address of the client associated with a specified session into its DNS name. The function returns a newly allocated string. You can use session_maxdns to change the numeric IP address into more readable format.


Note –

This function works only if the DNS directive is enabled in the obj.conf file. For more information, see Oracle iPlanet Web Proxy Server 4.0.14 Configuration File Reference.


Syntax

char *session_maxdns(Session *sn);

Returns

A string containing the host name, or NULL if the DNS name cannot be found for the IP address.

Parameters

Session *sn identifies the Session structure.

The Session is the same as the Session structure passed to your SAF.