eb0b0a26b5
Add additional fallback
2019-12-27 14:44:49 +01:00
ecbeca2ae0
Merge branch 'master' of https://github.com/amphp/dns into new-blocking
2019-12-13 03:04:02 +01:00
Niklas Keller
b52c8fd255
Allow custom domain in custom config example
2019-12-12 20:09:10 +01:00
Guuzen
9d7e57f37d
Allow resolving dotless hosts without search list ( #94 )
...
Fixes #93 .
2019-11-28 21:10:22 +01:00
bbb0adfb90
cs-fix
2019-08-22 23:59:06 +02:00
0a90926342
Fixes
2019-08-22 22:48:56 +02:00
9f39244e3c
FIxes
2019-08-22 22:38:29 +02:00
b0769cf6bf
Cs-fix
2019-08-22 20:46:31 +02:00
c56fa69008
Move native encoder classes
2019-08-22 20:44:19 +02:00
acf6e83e3c
Merge
2019-08-22 20:39:13 +02:00
Michał Brzuchalski
493d014b58
Add more resolv.conf features ( #89 )
...
- Add search list and ndots option
- Add support for rotate option
- Add support for LOCALDOMAIN and RES_OPTIONS
- Increase default timeout from 3s to 5s and limit it to 30s
Fixes #46 .
Fixes #47 .
2019-07-30 18:09:33 +02:00
edc0176f1a
Fully-fledged blocking resolver
2019-07-15 15:54:38 +02:00
Patrick Safarov
2e7921a13a
Fix empty resolution result on too many redirects
...
Fixes #87 .
2019-07-08 22:49:23 +02:00
Niklas Keller
0f59e8a14a
Fix expected name for Google DNS
2019-07-08 22:27:40 +02:00
Niklas Keller
2d61f2d728
Extract blocking fallback into its own resolver
2019-07-08 22:23:20 +02:00
Niklas Keller
eb4cd40b7c
Fix error messages based on the discussion in #86
2019-07-08 22:13:21 +02:00
7def49809b
Provide blocking fallback if config cannot be loaded ( #86 )
2019-07-08 21:58:53 +02:00
fbf1ae2d89
Support final dot in DNS names ( #83 )
2019-06-13 18:38:23 +02:00
498c7d3486
Fix benchmark example ( #85 )
2019-06-13 18:37:30 +02:00
ab07b327f0
Change argument type of decodeCachedResult ( #84 )
2019-06-10 16:01:50 +02:00
Niklas Keller
cb65162596
Fix import order and rename test
2019-03-13 17:43:10 +01:00
Niklas Keller
202498dab6
Update docs after Rfc1035StubResolver renaming
2019-03-13 17:38:40 +01:00
Niklas Keller
78ad81b3dc
Improve README example
2019-03-13 17:34:18 +01:00
Niklas Keller
d861050992
Rename driver() → createDefaultResolver()
2019-03-13 17:29:13 +01:00
Niklas Keller
05e0d23ec0
Revert making HostLoader::loadHosts() final
...
This method serves as an extension point not covered by an interface, so shouldn't be final.
2019-03-13 17:25:25 +01:00
Niklas Keller
882fcad930
Rename BasicResolver → Rfc1035StubResolver
2019-03-13 17:24:25 +01:00
Niklas Keller
d82d731008
Follow RFC 6761 for localhost resolution
...
Queries for localhost are no longer sent to the server, even if localhost isn't resolved by the hosts file.
Fixes #77 .
2019-03-13 17:18:23 +01:00
d42960ec2d
Resolve localhost locally as per RFC 6761
2019-03-13 17:06:25 +01:00
Niklas Keller
bb798c6dce
Remove outdated comment
2019-03-12 20:44:32 +01:00
Niklas Keller
53b467169c
Move AppVeyor to PHP 7.3
2019-03-12 20:42:11 +01:00
Aaron Piotrowski
b023ecda84
Merge branch 'v0.9.x'
2019-03-12 09:48:37 -05:00
I'm OK
585acfaf77
Update functions.php
...
To support docker container url
2019-03-12 09:39:04 -05:00
Aaron Piotrowski
ecb423be02
Finalize some things
2019-03-03 09:12:47 -06:00
Aaron Piotrowski
e67ba98a16
Remove deprecated exceptions
2019-03-03 09:12:18 -06:00
Aaron Piotrowski
135c6164ec
Add composer scripts
2019-03-03 09:05:43 -06:00
Aaron Piotrowski
1ccd6337f7
Update Travis for CS fixer
2019-01-24 22:12:31 -06:00
Aaron Piotrowski
c1a61c6e78
Use shared styles
2019-01-24 19:27:47 -06:00
Aaron Piotrowski
375bf3f63b
Set pending request before send
...
While unlikely, the same request ID could have been selected while waiting to send.
2019-01-24 18:16:45 -06:00
Aaron Piotrowski
d26f9bb44f
Remove amphp/file and amphp/uri dependencies ( #80 )
...
Replaces async loading of hosts and resolver files with blocking reads by default.
Closes #78 .
2019-01-04 18:20:52 +01:00
Niklas Keller
836b0896b0
Ignore docs/asset on export
...
Relates to amphp/amp#227
2018-05-16 22:23:07 +02:00
Niklas Keller
f48273546e
Update shared documentation files
...
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools .
2018-05-16 16:15:37 +02:00
Niklas Keller
4647e5f582
Accept different exception message for dead sockets
2018-05-01 20:08:54 +02:00
Niklas Keller
d8d497458a
Improve error messages
2018-05-01 19:55:02 +02:00
Austin Heap
41d02a30bb
Use ext-filter instead of inet_pton to avoid error suppression ( #73 )
2018-03-31 17:56:32 +02:00
Gabriel Caruso
e9ee48e269
Use assertLessThan over simple assertTrue
2018-03-31 08:17:46 +02:00
peter279k
6cdea2e995
Add tests ( #71 )
2018-03-11 09:39:46 +01:00
Niklas Keller
2c8133a7b4
Allow empty domain names to be decoded
...
This is a rather long standing issue. LibDNS didn't allow to decode empty domain names. Empty domain names were previously only observed with PTR records, but were now also observed in regular queries in authoritative records that include the root nameservers.
LibDNS 2.0 mainly adds scalar types has just a few breaking changes. We don't expose it anywhere, so an upgrade is perfectly fine.
Fixes #53 .
2018-01-10 17:26:11 +01:00
Niklas Keller
16e6d6c22f
Limit cache size by default to 256 entries
...
Fixes #65 .
2017-12-16 19:59:47 +01:00
Niklas Keller
417a4a83f9
Fix PATH on AppVeyor
2017-12-15 17:14:52 +01:00
Niklas Keller
38f7431878
Disable phpdbg, because it causes segfaults
2017-12-15 17:03:56 +01:00