getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_context_get_dnssec_trust_anchorsGet the DNSSEC trust anchors.


int php_getdns_context_get_dnssec_trust_anchors ( int $context , int &$value )

This function gets the trust anchors for DNSSEC validation.



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


The value is a list of bindatas that are the DNSSEC trust anchors. The default is the trust anchors from the IANA root. The trust anchors are expressed as RDATAs from DNSKEY resource records. 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