1
0
mirror of https://github.com/danog/dns.git synced 2024-12-02 09:27:55 +01:00
Commit Graph

66 Commits

Author SHA1 Message Date
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
Niklas Keller
0f59e8a14a Fix expected name for Google DNS 2019-07-08 22:27:40 +02:00
Niklas Keller
cb65162596 Fix import order and rename test 2019-03-13 17:43:10 +01:00
Niklas Keller
882fcad930 Rename BasicResolver → Rfc1035StubResolver 2019-03-13 17:24:25 +01:00
Aaron Piotrowski
c1a61c6e78
Use shared styles 2019-01-24 19:27:47 -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
4647e5f582 Accept different exception message for dead sockets 2018-05-01 20:08:54 +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
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