Skip to content

Conversation

@clue
Copy link
Member

@clueclue commented Jun 24, 2021

This changeset adds support for falling back to multiple DNS servers from DNS config. In other words, if you have multiple DNS servers configured (rare) and connectivity to the primary DNS server is broken (even rarer), it will now fall back to your other DNS servers.

This is done by simply passing the complete list of DNS servers down to the DNS component that is responsible for setting up the DNS executor stack. Accordingly, this builds on top of reactphp/dns#179 and reactphp/dns#180. See also reactphp/socket#257 for the same changes in the socket component.

@clueclue added this to the v1.7.0 milestone Jun 24, 2021
@clue
Copy link
MemberAuthor

clue commented Jun 24, 2021

The first commit updates this to the currently unreleased DNS component to show how this feature is used in this component (the build should be green). The second commit updates this to the release that has yet to be tagged. This is expected to fail at the moment and should be green once the release is tagged and the build is restarted.

This is ready for review. I will restart the build and merge once reviewed and the DNS component is tagged.

@WyriHaximusWyriHaximus self-requested a review June 25, 2021 08:35
@clueclue changed the title [WIP] Support falling back to multiple DNS servers from DNS configSupport falling back to multiple DNS servers from DNS configJun 25, 2021
@clue
Copy link
MemberAuthor

clue commented Jun 25, 2021

Restarted build and everyhing's green now that reactphp/dns v1.7.0 has been released :shipit:

@clueclue merged commit cf8207f into reactphp:masterJun 25, 2021
@clueclue deleted the dns-multiple branch June 25, 2021 11:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@clue@WyriHaximus