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

56 Commits

Author SHA1 Message Date
Niklas Keller
f9f0c6cdc8 Fix queries over TCP, add tests 2017-06-29 12:36:09 +02:00
Niklas Keller
ad55bcf870 Fix host loading on Windows 2017-06-24 01:18:12 +02:00
Niklas Keller
015ac39f08 Fix BasicResolver::reloadConfig 2017-06-23 18:43:04 +02:00
Niklas Keller
a10643fa37 Fix issue with type restricted resolve and add test 2017-06-23 18:35:48 +02:00
Niklas Keller
3c80f0a4b1 Remove bogus assertion for TTL 2017-06-23 18:26:42 +02:00
Niklas Keller
23e24b76c6 Add test for type restrictions in resolve 2017-06-23 18:21:56 +02:00
Niklas Keller
7ea775f741 Add HostLoader test 2017-06-23 18:07:57 +02:00
Niklas Keller
9ed331ae3d Implement request sharing for concurrent requests to the same resource 2017-06-23 17:48:03 +02:00
Niklas Keller
1124aa1117 Add test domain that has a CNAME 2017-06-23 13:18:12 +02:00
Niklas Keller
ebdf4a663e Implement resolve in BasicResolver 2017-06-23 13:14:51 +02:00
Niklas Keller
2815d8f694 Add config test 2017-06-22 23:39:13 +02:00
Niklas Keller
74e68587f7 Refactor to option-less interface 2017-06-22 23:25:21 +02:00
Niklas Keller
3c8412b4a7 Remove TYPE_ prefix for record constants 2017-06-22 20:08:27 +02:00
Niklas Keller
d7b32251d8 Rename ResolvConfTest to UnixConfigLoaderTest 2017-06-22 19:26:41 +02:00
Niklas Keller
315e03ff54 Refactor to Record class
Arrays are clearly not a good API and have resulted in bugs before, even within this package.
2017-06-22 19:22:45 +02:00
Niklas Keller
aa74a8825e Fix code style 2017-06-17 12:33:22 +02:00
Niklas Keller
25a8110c89 Refactor config loaders out of DefaultResolver 2017-06-17 12:30:38 +02:00
Niklas Keller
cbac861746 Update to PHPUnit 6, update code style 2017-06-17 10:49:54 +02:00
Aaron Piotrowski
e7559b6cbc Merge branch 'master' into amp_v2 2017-06-13 12:28:06 -05:00
Aaron Piotrowski
1d8dc615bf Update for async-interop merge and other Amp changes 2017-03-16 23:01:58 -05:00
Niklas Keller
5fc1cde2d2 Add test for PTR lookup by IP 2017-02-05 23:17:40 +01:00
Niklas Keller
badf3a9100 Merge branch 'master' into amp_v2 2017-01-25 16:36:19 +01:00
Niklas Keller
fc4621dfb7 Add test for custom servers 2017-01-25 16:25:41 +01:00
Aaron Piotrowski
f4055e5a52 Update for async-interop namespace change 2017-01-10 23:49:38 -06:00
Aaron Piotrowski
7091105e2f Update for removal of Amp loop wrapper functions 2016-12-29 21:17:07 -06:00
Aaron Piotrowski
644c4f8fc6 Drop strict types
Dropping strict types so it is not enforced in callbacks provided by application code.
2016-12-29 21:16:14 -06:00
Aaron Piotrowski
acd649e39e Use strict types 2016-08-23 23:20:25 -05:00
Aaron Piotrowski
49734bf786 Update test build 2016-08-23 23:19:20 -05:00
Bob Weinand
46589b730a Update for Amp v2 2016-08-02 23:57:40 +02: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
Niklas Keller
f70bd2d79f Add missing return, add tests for __loadResolvConf 2015-12-23 16:47:49 +01:00
Bob Weinand
ebb5fb510c Switch to a new API to enable getting not only the first entry and not only A/AAAA records
This now can do queries to dns servers and you'll get the list of raw records in an array
2015-09-08 17:27:33 +02:00
Daniel Lowrey
a2fe7a5764 Massive refactor using amp/1.0.0 2015-08-01 22:38:25 -04:00
Daniel Lowrey
79be6e8c28 initial wip 2015-07-27 21:53:44 -04:00
Daniel Lowrey
aaf718e128 Update for amphp/amp v0.15.0 2014-12-08 12:07:24 -05:00
Danack
ebce062f63 Added check to stop myself being confused by the tests not running. 2014-11-19 19:03:31 +00:00
Danack
8ac3ce08f8 Added test for overflow. 2014-11-10 16:13:44 +00:00
Danack
dd893c09a1 Fixed typo on variable. Added ClientTest to have client specific tests. 2014-11-10 15:42:58 +00:00
Daniel Lowrey
d562ce24f4 Simplify directory structure 2014-09-24 13:35:10 -04:00
Daniel Lowrey
ccd9c87aeb Initial amphp refactor 2014-09-24 00:04:46 -04:00
Danack
d4a86e8ac8 Fixed test to have correct behaviour. 2014-07-24 14:04:50 +01:00
Danack
b37ad10811 Added test where client is not set. 2014-07-24 12:53:10 +01:00
Danack
005d0710bb Changed bbc test to use an array to be consistent with others, and also added note about test should check two IP addreses.
Added check that cname is returned when only cname is available.
2014-07-24 12:25:56 +01:00
Danack
ac8d451278 Merge commit '671cffe242beee453f272f1d143ee29d6027e2dd' into addedSamplePackets
* commit '671cffe242beee453f272f1d143ee29d6027e2dd':
  Removed bogus check in test - there is still an issue so test is marked as skipped.
  Added resolver tests.
  Fix hosts file bug and tests
2014-07-24 11:35:03 +01:00
Danack
c9f86bbe7e Added more tests for example packets. 2014-07-24 11:34:40 +01:00
Danack
aab84bcef0 Removed bogus check in test - there is still an issue so test is marked as skipped. 2014-07-22 19:39:47 +01:00
Danack
8fdb86f655 Merge commit '3d81d18176b762191891de158dc04a1a59af6053' into addResolverTest
* commit '3d81d18176b762191891de158dc04a1a59af6053':
  Fix hosts file bug and tests

Conflicts:
	test/AddrTest/HostsFileTest.php
2014-07-22 19:34:47 +01:00
Danack
155d33475b Added resolver tests. 2014-07-22 18:31:44 +01:00
Danack
06317638c6 Added hard-coded packet response to allow testing of the decoding. 2014-07-22 16:30:34 +01:00
Chris Wright
3d81d18176 Fix hosts file bug and tests
Thanks to @Danack
2014-07-22 16:18:26 +01:00