getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_context_get_edns_extended_rcodeGet the EDNS extended RCODE value.


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

This function gets the EDNS extended RCODE value. See » RFC 6891 for a description of this value and its function.



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


The current EDNS extended RCODE value. Valid values range from 0 to 255 inclusive. The default value is 0 (zero). 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