Commit Graph

23 Commits

Author SHA1 Message Date
835fbb9ef6 Migrate to GitHub actions for coverage & unit test automation (#251) 2021-01-11 17:31:09 +02:00
af542b44a9 Proper EDNS0 (non)support (#188)
* Proper EDNS0 (non)support

* Add changelog entry

* Add EDNS0 tests
2019-10-18 22:24:56 +03:00
c13035a344 Refactor: Use more specific type in argument of DB.Update (#162)
The DB.Update function takes a type of ACMETxt. However, the function
only requires the Value and Subdomain fields.

Refactor the function such that it takes ACMETxtPost instead of the full
ACMETxt record. This will simplify extraction of txt-record related
logic from the db code.
2019-06-12 15:41:02 +03:00
37db83e5b7 Respond case insensitively to A and SOA requests (#152)
* When appending the SOA for authoritative NXDOMAIN responses, it needs to go in
the Authoritative section, not the Answer section.

This fixes the acme-dns validation for the lego Let's Encrypt client.

* Respond case-insensitively to A and SOA requests. Add corresponding tests.

This fixes the autocert feature with Let's Encrypt, because Let's Encrypt does
a lookup for the A record with a deliberately mangled case.
2019-02-07 09:16:33 +02:00
41a1cff0ae When appending the SOA for authoritative NXDOMAIN responses, it needs to go in (#151)
the Authoritative section, not the Answer section.

This fixes the acme-dns validation for the lego Let's Encrypt client.
2019-02-07 09:13:47 +02:00
09dc25d336 Update vendored dependencies (#147)
* Prepare readme for release

* Update vendored packages

* New version of dns dependency handles rejecting UPDATEs under the hood

* Go 1.11 required
2019-02-04 00:21:42 +02:00
de7fe3cb1d Fix responses to be more standards compliant (#145)
* Handle OPT questions (EDNS)

* Handle authoritative bit, and append SOA for authoritative NXDOMAIN responses

* Changelog entry

* Fix linter errors
2019-02-03 20:19:15 +02:00
7a2f9f06b1 Refactoring DNS server part for safer paraller execution (#144)
* Refactoring DNS server part for safer paraller execution and better data structures

* Fix linter issues
2019-02-03 17:23:04 +02:00
c3ac7a211c DB code for CIDR handling 2016-12-01 00:03:08 +02:00
c7f7e6cca8 Fixed a typo 2016-11-29 01:14:08 +02:00
4c437c0506 Added protocol selection to DNS server 2016-11-28 22:46:24 +02:00
d33bda96fa New test and test logger stettings 2016-11-28 16:25:42 +02:00
550b23778f Better coverage and refactored static record parsing 2016-11-28 15:39:52 +02:00
e036c191e9 Fiexes for DNS tests 2016-11-28 02:09:01 +02:00
74b82c87a6 Refactoring 2016-11-27 21:21:38 +02:00
5072b231af Refactored tests 2016-11-27 19:41:54 +02:00
b4cc6b8e81 Test structure fixes 2016-11-26 16:23:22 +02:00
4269069a54 Went logrus 2016-11-26 15:53:38 +02:00
3ae7dee8ea Fixed race conditions in tests 2016-11-26 14:23:08 +02:00
9ebc0d02ae Trying to make travis happy 2016-11-26 11:40:28 +02:00
776c9bc3f2 More DNS tests 2016-11-26 10:40:36 +02:00
f71b1772c6 DNS tests continued 2016-11-26 10:02:32 +02:00
8f8262acdd Begun writing dns.go tests 2016-11-25 18:50:13 +02:00