getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_context_set_edns_maximum_udp_payload_sizeSet the EDNS maximum UDP payload size.


int php_getdns_context_set_edns_maximum_udp_payload_size ( int $context , int $value )

This function sets the EDNS maximum UDP payload size. 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 EDNS maximum UDP payload size value. The value must be between 512 and 65535 inclusive; when not set, outgoing values will adhere to the suggestions in » RFC 6891 and may follow a scheme that uses multiple values to maximize receptivity.

Return Values

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

getdns Functions
PHP Manual