(PECL getdns >= 0.10.0)
php_getdns_context_set_follow_redirects — Set query redirect follow behavior for a recursive resolver.
$context
, int $value
)This function specifies whether or not DNS queries follow redirects.
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.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.