amphp/dns
Async DNS resolver for PHP built on Amp. Provides non-blocking hostname lookups, record queries, caching and timeouts with an event loop, ideal for high-concurrency applications and CLI tools needing fast, reliable DNS without blocking I/O.
Full Changelog: https://github.com/amphp/dns/compare/v2.3.0...v2.4.0
Full Changelog: https://github.com/amphp/dns/compare/v2.2.0...v2.3.0
Full Changelog: https://github.com/amphp/dns/compare/v1.2.3...v1.2.4
StaticDnsConfigLoaderFull Changelog: https://github.com/amphp/dns/compare/v2.1.2...v2.2.0
Full Changelog: https://github.com/amphp/dns/compare/v2.1.1...v2.1.2
Full Changelog: https://github.com/amphp/dns/compare/v2.1.0...v2.1.1
Cancellation arguments to Amp\Dns\query() and Amp\Dns\resolve().Full Changelog: https://github.com/amphp/dns/compare/v2.0.1...v2.1.0
9d988e317344ccebFull Changelog: https://github.com/amphp/dns/compare/v2.0.0...v2.0.1
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.
Resolver to DnsResolverresolver() to dnsResolver()Config to DnsConfigConfigLoader to DnsConfigLoaderUnixConfigLoader to UnixDnsConfigLoaderWindowsConfigLoader to WindowsDnsConfigLoaderRecord to DnsRecordNoRecordException to MissingDnsRecordExceptionTimeoutException to DnsTimeoutExceptionConfigException to DnsConfigExceptionCancellation parameter to DnsResolver methodsCancellation parameter to Resolver methodsConfig to DnsConfigConfigLoader to DnsConfigLoaderUnixConfigLoader to UnixDnsConfigLoaderWindowsConfigLoader to WindowsDnsConfigLoaderrevolt/event-loop 0.2.xsearch option, e.g. Docker containers (#93, #94)Thanks to @brzuchal for implementing these features.
localhost handling in edge casesnormalizeName() to allow underscoresBasicResolver to Rfc1035StubResolverdriver() to createDefaultResolver()ResolutionException, catch DnsException insteadInvalidNameErroramphp/file and amphp/uri dependencies. Host file loading is now done with a synchronous read by default. We felt an asynchronous read was not necessary for what should be a local file that is (generally) read only once. Async reading can be restored if desired by extending HostLoader and overloading readFile().isValidName() and normalizeName().ext-filter instead of error suppression (#73)amphp/file v0.3.x as dependency.BasicResolver->gcWatcher (#68).BasicResolver::resolve() always returning records without a TTL, due to querying the same domains five times instead of breaking a loop.Record::getName().How can I help you explore Laravel packages today?