getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_context_set_tls_query_padding_blocksizeSet the TLS query padding block size.


int php_getdns_context_set_tls_query_padding_blocksize ( int $context , int $value )

This function can be used to set the EDNS(0) block size padding option. With this option, the query size will be padded to be a multiple of a block size when queried over GETDNS_TRANSPORT_TLS transport. This is designed to reduce the possibility of guessing the query by analyzing query sizes.



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


The value to be set. Valid values range from 0 (zero) to MAXIMUM_UPSTREAM_OPTION_SPACE - 4. The value of MAXIMUM_UPSTREAM_OPTION_SPACE is a getdns library configuration parameter.

Return Values

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

getdns Functions
PHP Manual