File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.7.0 (2021-06-25)
4+
5+ * Feature: Update DNS ` Factory ` to accept complete ` Config ` object.
6+ Add new ` FallbackExecutor ` and use fallback DNS servers when ` Config ` lists multiple servers.
7+ (#179 and #180 by @clue )
8+
9+ ``` php
10+ // old (still supported)
11+ $config = React\Dns\Config\Config::loadSystemConfigBlocking();
12+ $server = $config->nameservers ? reset($config->nameservers) : '8.8.8.8';
13+ $resolver = $factory->create($server, $loop);
14+
15+ // new
16+ $config = React\Dns\Config\Config::loadSystemConfigBlocking();
17+ if (!$config->nameservers) {
18+ $config->nameservers[] = '8.8.8.8';
19+ }
20+ $resolver = $factory->create($config, $loop);
21+ ```
22+
323## 1.6.0 (2021-06-21)
424
525* Feature: Add support for legacy `SPF` record type.
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ This project follows [SemVer](https://semver.org/).
429429This will install the latest supported version:
430430
431431``` bash
432- $ composer require react/dns:^1.6
432+ $ composer require react/dns:^1.7
433433```
434434
435435See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments