getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_context_get_edns_do_bitGet the value of the EDNS DO bit.


int php_getdns_context_get_edns_do_bit ( int $context , bool &$value )

This function gets the value of the EDNS DO (DNSSEC OK) bit. See » RFC 3225 for a description of this flag and its function.



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


The current value of the EDNS DO bit. It will evaluate to either TRUE or FALSE. 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