getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_context_get_edns_client_subnet_privateGet the EDNS client subnet private value.


int php_getdns_context_get_edns_client_subnet_private ( int $context , bool $value )

This function can be used to retrieve the current setting of the value used to ask EDNS client subnet aware upstreams to not reveal the originating network of the query.



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


The current value of the subnet privacy value. 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