getdns Functions
PHP Manual

php_getdns_context_get_resolution_type

(PECL getdns >= 0.10.0)

php_getdns_context_get_resolution_typeGet the DNS query resolution type.

Description

int php_getdns_context_get_resolution_type ( int $context , int &$value )

This function gets the current value of the DNS query resolution type being used by the getdns library.

Parameters

context

The previously created DNS context that is to be used with this request.

value

The value of the DNS query resolution type. The returned value will be either GETDNS_RESOLUTION_RECURSING or GETDNS_RESOLUTION_STUB; the default is GETDNS_RESOLUTION_RECURSING. Note that this argument is passed by reference and any existing value will be overwritten.

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.


getdns Functions
PHP Manual