1
0
mirror of https://github.com/danog/dns.git synced 2024-11-27 04:24:48 +01:00
Commit Graph

290 Commits

Author SHA1 Message Date
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
Niklas Keller
fb282e4e93 Allow amphp/file ^0.3 2017-12-15 17:02:47 +01:00
Niklas Keller
95cf192749 Use PHP 7.2 on AppVeyor 2017-12-15 16:58:35 +01:00
Niklas Keller
86833034cd Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-12-14 19:16:25 +01:00
Niklas Keller
f8bf80ad84 Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-12-06 12:50:02 +01:00
Aaron Piotrowski
511e89c52b
Define target platform in composer.json and fix .travis.yml 2017-12-02 21:11:27 -06:00
Bob Weinand
cbaa517c8a
Fix #68 - cyclic reference within BasicResolver->gcWatcher 2017-11-07 16:18:49 +01:00
Niklas Keller
36ef1a6959 Prevent UDP sockets from leaking and close sockets on timeouts 2017-11-07 09:42:42 +01:00
Niklas Keller
4dbc6b1038 Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-10-20 19:13:42 +02:00
Niklas Keller
c2a2258b8f Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-10-20 18:33:32 +02:00
Niklas Keller
223fb06077 Update to new shared docs repo 2017-09-27 14:49:02 +02:00
Niklas Keller
ec1cf1681a Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-09-21 18:14:27 +02:00
Niklas Keller
8b8706dcb9 Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-09-20 21:48:34 +02:00
Niklas Keller
261b775400 Update shared documentation files
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools.
2017-09-16 19:34:09 +02:00
Niklas Keller
1a41089d84 Fix BasicResolver::resolve to break redirect loop
Previously we queried domains usually five times (max redirects). It didn't have much impact, because these records were usually cached and immediately returned again, but this resulted in the TTL always being NULL due to cached records being returned.
2017-09-12 17:08:38 +02:00
Niklas Keller
dd6e3c294a Improve example formatting and add PTR example 2017-09-12 17:05:40 +02:00
Niklas Keller
fcdf01de72 Add Record::getName to translate record types to names 2017-09-12 17:04:41 +02:00
Niklas Keller
331e359936 Fix indent 2017-09-12 09:39:42 +02:00
Niklas Keller
b33ec8043f Add example for a custom config 2017-09-12 09:38:26 +02:00
Niklas Keller
947c0d1022 Remove header from top 500 domains in examples 2017-09-10 11:01:27 +02:00
Niklas Keller
40d0fa412f Improve examples 2017-09-09 19:40:48 +02:00
Robert Goldsmith
4005ff4d32 Fix a precedence issue whee supplying your own ConfigLoader to the BasicResolver resulted in a WindowsConfigLoader being instantiated instead. 2017-08-09 18:53:33 +02:00
Niklas Keller
44cef3fb53 Unbreak logo text 2017-07-15 23:20:14 +02:00
Niklas Keller
3b71a3d9d5 Use new logo \o/ 2017-07-15 23:16:08 +02:00
Niklas Keller
a5ccdd9a08 Fix up previous commit for concurrent config loading 2017-07-13 21:17:16 +02:00