Skip to content
New issue

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

Feature Request: multiple queries in parallel to speed up things #95

Open
deepika-maj opened this issue Oct 5, 2019 · 2 comments
Open

Comments

@deepika-maj
Copy link

it would be really nice if this library supports doing multiple queries in parallel so that it will reduce the processing time.

at the moment I am doing it like below:

$resolver = new \Net_DNS2_Resolver([
    'nameservers' => $nameServers,
    'ns_random' => true
]);

$types = ['A', 'NS', 'TXT', 'MX'];
foreach ($types as $type) {
    $response = $resolver->query($hostName, $type);
    // response processing
}
@andrii-pukhalevych
Copy link

Did you try $response = $resolver->query($hostName, '*') ?

@Pascal76
Copy link

maybe https://github.com/spatie/async ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants