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

Added support for /etc/hosts #225

Closed
wants to merge 1 commit into from
Closed

Conversation

arnaud-lb
Copy link
Contributor

This adds support for /etc/hosts through a HostsFileExecutor executor.

The Factory is changed so that the Resolver looks in /etc/hosts first. The executor stack looks like this: CachedExecutor -> HostsFileExecutor -> RetryExecutor -> Executor.


public function query($nameserver, Query $query)
{
$that = $this;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

master is now 5.4+, so this stuff can go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great news :)

@attozk
Copy link

attozk commented Oct 15, 2014

+1 for one-time process of /etc/hosts

@clue
Copy link
Member

clue commented Sep 19, 2015

This PR seems like a good starting point, thanks @arnaud-lb!

This PR has been WIP for quite some time now and things have changed considerably since then :-)

React now consists of individual components that are maintained individually. Supporting the hosts file is now related to the react/dns component.

Somebody has already filed reactphp/dns#10 to keep track of this, so I suppose it makes sense to focus our hosts file related efforts on this component.

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

Successfully merging this pull request may close these issues.

None yet

5 participants