(PECL getdns >= 0.10.0)
php_getdns_context_get_follow_redirects — Get query redirect follow behavior for a recursive resolver.
This function gets the current value of the policy that specifies whether or not DNS queries follow redirects.
The previously created DNS context that is to be used with this request.
The current value of the policy. GETDNS_REDIRECTS_FOLLOW indicates normal following of redirects though CNAME and DNAME. GETDNS_REDIRECTS_DO_NOT_FOLLOW indicates that any lookups that would have gone through CNAME and DNAME will return the CNAME or DNAME, not the eventual target. Note that this argument is passed by reference and any existing value will be overwritten.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.