(PECL getdns >= 0.10.0)
php_getdns_context_get_append_name — Get the append name setting from a context.
$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.
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.
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.