Skip to content

Commit a45784f

Browse files
committed
Prepare v1.7.0 release
1 parent 1eb04e0 commit a45784f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
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.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ This project follows [SemVer](https://semver.org/).
429429
This 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

435435
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)