getdns Functions
PHP Manual

php_getdns_context_set_follow_redirects

(PECL getdns >= 0.10.0)

php_getdns_context_set_follow_redirectsSet query redirect follow behavior for a recursive resolver.

Description

int php_getdns_context_set_follow_redirects ( int $context , int $value )

This function specifies whether or not DNS queries follow redirects.

Parameters

context

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

value

The value of the policy to be set. Use GETDNS_REDIRECTS_FOLLOW for normal following of redirects though CNAME and DNAME. Use GETDNS_REDIRECTS_DO_NOT_FOLLOW to cause any lookups that would have gone through CNAME and DNAME to return the CNAME or DNAME, not the eventual target.

Return Values

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


getdns Functions
PHP Manual