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

DNS resolver is optional #7

Conversation

ojhaujjwal
Copy link

Because I have IP Address and I don't want to resolve IP.
But, this will mean that the react/dns is optional and we may remove it from composer.json too.

@WyriHaximus
Copy link
Contributor

Yes please! 👍

@cboden
Copy link
Contributor

cboden commented Jun 13, 2014

I'm +1 for not having to set a Resolver if you're going to use an IP address. However I think I would prefer if that used a Null object pattern that returned the IP address when resolver->resolve() is called instead of throwing an exception. This alteration would prevent a BC break as well.

@edhelas
Copy link

edhelas commented Aug 6, 2015

I'd really like to see this PR merged.
Actually I'm still using 8.8.8.8 as an hardcoded DNS server in my project (https://github.com/edhelas/movim/blob/master/linker.php#L15) and I see this as a big privacy issue. Is it possible to use the "default" PHP DNS or the one that is set by the OS ? Or maybe I didn't understand something here :) ?

@clue clue mentioned this pull request Sep 7, 2015
@clue
Copy link
Contributor

clue commented Sep 7, 2015

👍 on the feature, but 👎 on the implementation as it stands

The suggested API means the Connector is now stateful and it introduces additional runtime complexity. Also, the current implementation throws an Exception instead of rejecting (though this could easily be fixed).

See #46 for an alternative implementation as discussed in #12

Is it possible to use the "default" PHP DNS or the one that is set by the OS ? Or maybe I didn't understand something here :) ?

This is unrelated to this changeset in fact :) Quite surprisingly this hasn't been tracked before, so I've just filed reactphp/dns#29.

@clue clue closed this in #46 Nov 21, 2015
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

Successfully merging this pull request may close these issues.

5 participants