We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description To avoid blocks in the whois server we use different IPs. With curl it is possible:
` $loader = new CurlLoader();
$loader->replaceOptions([ CURLOPT_INTERFACE => xxx.xxx.xxx.xxx, CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4 ]);
$whois = Factory::get()->createWhois($loader);
Factory::get()->createWhois($loader);
With socket it is faster but it is not possible...
Example
We have had to modify the code of the file:
vendor/io-developer/php-whois/src/Iodev/Whois/Loaders/SocketLoader.php
Changing:
$handle = @fsockopen($whoisHost, 43, $errno, $errstr, $this->timeout);
By:
` $socket_context = @stream_context_create(array("socket" => array("bindto" => "xxx.xxx.xxx.xxx:0")));
$handle = @stream_socket_client($whoisHost.":43", $errno, $errstr, $this->timeout, STREAM_CLIENT_CONNECT, $socket_context); `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
To avoid blocks in the whois server we use different IPs. With curl it is possible:
`
$loader = new CurlLoader();
$loader->replaceOptions([ CURLOPT_INTERFACE => xxx.xxx.xxx.xxx, CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4 ]);
$whois =
Factory::get()->createWhois($loader);
With socket it is faster but it is not possible...
Example
We have had to modify the code of the file:
vendor/io-developer/php-whois/src/Iodev/Whois/Loaders/SocketLoader.php
Changing:
$handle = @fsockopen($whoisHost, 43, $errno, $errstr, $this->timeout);
By:
`
$socket_context = @stream_context_create(array("socket" => array("bindto" => "xxx.xxx.xxx.xxx:0")));
$handle = @stream_socket_client($whoisHost.":43", $errno, $errstr, $this->timeout, STREAM_CLIENT_CONNECT, $socket_context);
`
The text was updated successfully, but these errors were encountered: