1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00
Commit Graph

152 Commits

Author SHA1 Message Date
Niklas Keller
fc221ecec8 Ignore responses without corresponding query ID, fixes #64 2017-10-23 15:16:54 +02:00
Niklas Keller
70441dab20 Merge pull request #60 from amphp/0.8.x-pending-gc
Clear pending requests if there's no response after the timeout
2017-07-12 18:03:14 +02:00
Niklas Keller
a33ee4bb63 Clear pending requests if there's no response after the timeout 2017-07-12 17:47:14 +02:00
Niklas Keller
35278b07a2 Cache DNS records for a maximum of one day 2017-07-12 17:10:04 +02:00
Niklas Keller
4ef49e8544 Fix cache TTL 2017-06-14 08:08:34 +02:00
Chris Wright
9f2820bb63 Merge pull request #57 from Peleg/use-ttl
Fix bug where record type ID is used as TTL in cache
2017-06-01 08:56:55 +01:00
Peleg Rosenthal
1de011e888 use ttl before caching 2017-05-26 16:37:15 -04:00
Aaron Piotrowski
4e4d6e9f81 Unload server when fwrite fails
Ignore errors from fwrite caused by disconnected sockets and immediately unload the server.
2017-03-02 16:38:11 -06:00
Niklas Keller
5fc1cde2d2 Add test for PTR lookup by IP 2017-02-05 23:17:40 +01:00
Niklas Keller
2b6925f166 Automatically convert IPs to ARPA domain 2017-02-05 23:17:40 +01:00
Niklas Keller
45ab9b512b Search for DhcpNameServer in interfaces on Windows
Resolves #49.
2017-02-05 09:49:46 +01:00
Niklas Keller
6924079756 Delete obsolete coveralls config, add recommended travis_retry 2017-01-25 16:41:31 +01:00
Niklas Keller
fc4621dfb7 Add test for custom servers 2017-01-25 16:25:41 +01:00
Niklas Keller
5012ed3cf1 Depend on php-code-coverage 2.2 or higher for the PHPDBG driver 2017-01-25 13:21:19 +01:00
Niklas Keller
ebabcf256d Readd 5.5 and 5.6 to Travis, add 7.1 and use lowest and highest deps 2017-01-25 13:05:17 +01:00
Niklas Keller
8659b56263 Merge pull request #43 from imbrish/master
Fix parsing servers with port in parseCustomServerUri
2017-01-25 12:58:32 +01:00
Paul
885515990c Fix parsing servers with port in parseCustomServerUri 2017-01-25 12:52:55 +01:00
Niklas Keller
2c901b26c9 Reenable 7.1 with retry, only output essential information 2017-01-05 09:59:34 +01:00
Niklas Keller
7765600761 Disable 5.5, too, as only 5.5.16 is avilable, but only via the archive page, which is not used by choco 2017-01-05 09:39:08 +01:00
Niklas Keller
07d28168ab Enable PHP 5.5 tests, disable 7.1 for now because of installation failures 2017-01-05 09:01:47 +01:00
Niklas Keller
0b0ef2b82d Enable AppVeyor, search in all interfaces for nameservers 2017-01-05 01:13:28 +01:00
Niklas Keller
cf08357a86 Add support for Windows DNS nameserver configuration (#40) 2017-01-04 20:07:28 +01:00
Bob Weinand
55de45b00b Remove travis runs for 5.5/5.6 2016-08-13 19:20:26 +02:00
Niklas Keller
2af7bed940 Update php-cs-fixer dependency to friendsofphp 2016-07-23 09:44:37 +02:00
Bob Weinand
d021dd20f1 Fix broken hostname validation to match RFC 1123 2.1
Fixes #34
2016-07-07 16:07:10 +02:00
Bob Weinand
d9b2383624 Merge pull request #35 from Ayesh/master
README.md file example PHP snippet fix
2016-07-07 12:53:33 +02:00
Ayesh Karunaratne
2c8a4aec41 Example syntax error fixed (#1) 2016-07-07 14:38:00 +05:30
Bob Weinand
ba6016dd0a Do async connect for TCP, use a hard timeout of 5 seconds here
Fixes #32
2016-05-26 21:49:36 +02:00
Niklas Keller
64cec63e26 Merge pull request #31 from staabm/patch-1
Cache composer dependecies for faster builds
2016-04-01 16:43:03 +02:00
Markus Staab
938d8d2b0b Cache composer dependecies for faster builds 2016-04-01 16:34:32 +02:00
Niklas Keller
a721e5f583 Allow custom paths on Windows, fixes tests on Windows 2016-03-26 22:25:34 +01:00
Bob Weinand
9f12b2264f Fix resolving localhost on Windows 2016-03-26 21:35:44 +01:00
Bob Weinand
78cda5692a Add (array) cast for $types inside resolve() 2016-03-24 20:17:04 +01:00
Bob Weinand
4311c836bf Rename SystemResolver => DefaultResolver 2016-03-20 11:40:08 +01:00
Niklas Keller
e3411ce472 Refactor into class with accessor like in amphp/amp and amphp/file, resolves #28 2016-03-19 22:23:55 +01:00
Bob Weinand
daf859ec40 Fix issues #25 and #26 2016-03-14 22:50:59 +01:00
Bob Weinand
2ca9766dff Prevent multiple unloading of server 2016-02-29 19:58:53 +01:00
Bob Weinand
a3b2c9099f Fixed issue #27 2016-02-25 12:36:51 +01:00
Bob Weinand
35b147d6f0 Fix parameter order 2016-02-21 21:54:50 +01:00
Niklas Keller
f70bd2d79f Add missing return, add tests for __loadResolvConf 2015-12-23 16:47:49 +01:00
Niklas Keller
2f8103f173 Handle IPv6 nameservers correctly 2015-12-23 14:56:14 +01:00
Niklas Keller
4c4d450d4a Fix #24: Default nameservers without port 2015-12-08 10:41:38 +01:00
Niklas Keller
29ae0bd341 Catch RuntimeException from Amp\some and turn it into ResolutionException 2015-09-23 22:22:33 +02:00
Niklas Keller
218e5877cd Add TODOs, update README 2015-09-18 15:09:28 +02:00
Bob Weinand
b63526343d Style, fix minor bug with wrong $option index in conf loader 2015-09-18 03:37:10 +02:00
Niklas Keller
67ed5539ce Add basic resolv.conf support 2015-09-18 02:49:06 +02:00
Bob Weinand
72764745f2 Automatically fallback to TCP upon timeout 2015-09-16 16:31:31 +02:00
Bob Weinand
f71c1a0b4c Use amphp/file 0.1 tag in composer now
And add myself as co-author
2015-09-11 03:40:52 +02:00
Niklas Keller
e0fcee2f0a Update to new cache api, remove minor code smell, import classes 2015-09-10 17:11:48 +02:00
Bob Weinand
bdb8b5bf96 Fixes, use amphp/file, few renamings 2015-09-08 23:03:25 +02:00