getdns Functions
PHP Manual

php_getdns_context_get_append_name

(PECL getdns >= 0.10.0)

php_getdns_context_get_append_nameGet the append name setting from a context.

Description

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

This function retrieves the value that describes how the getdns library will or will not append a suffix to the query string before the library starts resolving a name.

Parameters

context

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

value

The variable to receive the current value. 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.

On successful completion the value parameter will contain one of the following values: GETDNS_APPEND_NAME_ALWAYS, GETDNS_APPEND_NAME_ONLY_TO_SINGLE_LABEL_AFTER_FAILURE, GETDNS_APPEND_NAME_ONLY_TO_MULTIPLE_LABEL_NAME_AFTER_FAILURE, or GETDNS_APPEND_NAME_NEVER.


getdns Functions
PHP Manual