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

Factory does not honor /etc/resolv.conf #21

Closed
clue opened this issue Sep 21, 2017 · 0 comments · Fixed by #23
Closed

Factory does not honor /etc/resolv.conf #21

clue opened this issue Sep 21, 2017 · 0 comments · Fixed by #23

Comments

@clue
Copy link
Member

clue commented Sep 21, 2017

As as v1.3.0 (see #20), the Factory is hard-coded to default to Google's public DNS server 8.8.8.8. You can explicitly pass a custom Resolver instance like this:

$dnsFactory = new \React\Dns\Resolver\Factory();
$resolver = $dnsFactory->create('127.0.0.1');

$factory = new Factory($loop, $resolver);

Opening this ticket as a reminder - this actually depends on reactphp/dns#29
The same issue also affects the Socket component: reactphp/socket#90

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