getdns Functions
PHP Manual

php_getdns_context_set_edns_client_subnet_private

(PECL getdns >= 0.10.0)

php_getdns_context_set_edns_client_subnet_privateSet the EDNS client subnet private value.

Description

int php_getdns_context_set_edns_client_subnet_private ( int $context , int $value )

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

Parameters

context

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

value

Valid values are 0 (zero) for "not private" and 1 (one) for "private".

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.


getdns Functions
PHP Manual