Commit Graph

692 Commits

Author SHA1 Message Date
Kazu Yamamoto
95f80e2777 adding resourceDataType method 2022-09-08 14:11:42 +09:00
Kazu Yamamoto
339ebb4931 brushing up exports 2022-09-07 15:26:37 +09:00
Kazu Yamamoto
3e5a26b1e2 rescue tests for GHC 8.0 and 8.2 2022-09-06 19:51:32 +09:00
Kazu Yamamoto
6ec861dc26 fix doctest 2022-09-06 16:27:35 +09:00
Kazu Yamamoto
ed619f9cde a typo 2022-09-06 16:02:49 +09:00
Kazu Yamamoto
1ab4f5e347 same style for unknown pattern synonyms 2022-09-06 15:25:14 +09:00
Kazu Yamamoto
2e89cd2273 removing a warning 2022-09-06 15:17:48 +09:00
Kazu Yamamoto
96b0252253 removing warnigs 2022-09-06 15:15:44 +09:00
Kazu Yamamoto
d628f28251 hlint 2022-09-06 15:15:14 +09:00
Kazu Yamamoto
010e72efb9 implementing copyResourceData 2022-09-06 15:11:49 +09:00
Kazu Yamamoto
34269f7757 Show for OPCODE 2022-09-06 14:44:39 +09:00
Kazu Yamamoto
1d5df22100 introducing extensible resource record 2022-09-06 14:44:21 +09:00
Kazu Yamamoto
28107ff583 dividing Types.Internal module. 2022-09-02 14:52:55 +09:00
Kazu Yamamoto
05af42af5c style only 2022-09-02 14:38:29 +09:00
Kazu Yamamoto
137b602f84 dividing Types.Internal module. 2022-09-02 14:33:54 +09:00
Kazu Yamamoto
5affa1765d using pattern synonyms for OPCODE 2022-09-02 13:47:24 +09:00
Kazu Yamamoto
775ce1f8f5 style only 2022-09-02 12:26:11 +09:00
Kazu Yamamoto
e481df5615 set version to 4.1.0. 2022-08-09 13:56:35 +09:00
Kazu Yamamoto
53de78bcdd changelog 2022-08-09 10:32:31 +09:00
Kazu Yamamoto
9f7611896e Merge PR #167 2022-06-24 12:47:24 +09:00
Kei Hibino
e2c3614f38 add relaxed lookup-raw interface. 2022-06-24 10:50:05 +09:00
Kazu Yamamoto
0e6604ccee changing the argument order of "resolve". 2022-06-23 16:12:41 +09:00
Kazu Yamamoto
c11960ec32 Merge PR #166 2022-06-23 16:03:04 +09:00
Andrea Bedini
7a855af9fd
Avoid service name resolution
DNS name server listening port number is standarized by IANA to 53. We
don't need to rely on service name resolution in this case.
2022-06-22 16:15:47 +08:00
Viktor Dukhovni
10619e551d Fix Changelog typos 2022-06-22 01:05:02 -04:00
Viktor Dukhovni
4f0d8df8fe More test bitrot 2022-06-22 00:40:57 -04:00
Kazu Yamamoto
c5495db5a9 Merge PR #165 2022-01-18 10:16:23 +09:00
Josh Brown
e75a8ada76 Lowever LTS version back down to 12.24 2021-12-23 10:53:54 +11:00
Josh Brown
9c62639e62 Adressing comments on #165 from @vdukhovni - receive is not a wrapper now 2021-12-23 10:05:36 +11:00
Josh Brown
8dd078ef60 Removed stack lockfile 2021-12-21 00:43:25 +11:00
Josh Brown
1d26a12651 receiveFrom, sendTo fns for UDP. Bumped LTS version 2021-12-20 23:39:43 +11:00
Viktor Dukhovni
3ea10d6411 Follow bytestrings ci template
On Windows, try to test 8.10
2021-10-30 06:58:42 -04:00
Viktor Dukhovni
78c0a5047e Test bitrot
Some of the underlying DNS data changed breaking doctests Also the most recent
doctests package seems to not honour some extensions in the source file.  Set
these explicity in doctests.hs.
2021-10-30 06:58:42 -04:00
Kazu Yamamoto
067e91ae55 Merge PR #161 2020-12-15 15:55:30 +09:00
Viktor Dukhovni
88841317c2 Updated changelog 2020-12-14 20:43:44 -05:00
Viktor Dukhovni
dd0b17c47e Drop CPP guards for GHC 7.x
Also drop extraneous unused CPP.
2020-12-14 20:41:04 -05:00
Viktor Dukhovni
c052097788 Update Changelog 2020-12-14 01:52:58 -05:00
Viktor Dukhovni
fdeda96d56 Replace mew.org with ipv4.tlund.se
The former now has an IPv6 address, but the test requires a domain
with no IPv6 addresses.
2020-12-14 01:52:58 -05:00
Viktor Dukhovni
5be9d06103 Silence compiler warning 2020-12-14 01:52:50 -05:00
Viktor Dukhovni
37b778ef63 Implement RP record support 2020-12-14 01:09:52 -05:00
Kazu Yamamoto
a1ea4554c6 adding a badge. 2020-12-01 10:57:54 +09:00
Kazu Yamamoto
0bbc7792fc Merge PR #159 2020-11-04 10:57:39 +09:00
Viktor Dukhovni
d24d687138 Switch to github actions CI
- GHC 8.0--8.10 builds passed on Ubuntu and MacOS
- GHC 8.6 build passed on Windows

Removing .travis.yml and appveyor.yml.
2020-11-02 07:28:47 -05:00
Viktor Dukhovni
34458441b0 Fix missing space in SRV presentation form
The SRV target was output right after the port with
no space in between.
2020-11-02 08:40:15 -02:00
Viktor Dukhovni
ace26560d5 Avoid out of range pointers.
A test failure highlighted the fact that we were encoding pointers
to positions outside the 14-bit pointer range.  New domains beyond
2^14-1 bytes into the packet MUST NOT generate new compression
targets.
2020-11-02 08:40:15 -02:00
Kazu Yamamoto
e71eaeb1c7 removing trailing spaces. 2020-11-02 10:26:54 +09:00
Kazu Yamamoto
5d4e193729 Merge PR #154 2020-11-02 10:23:34 +09:00
Viktor Dukhovni
9b6c2797fd Avoid decode cache store/lookup for mailbox names
On rare occasions an SOA rname will match one of the domain names
in the rest of the message, with pointer compression used to
deduplicate the bytes.  But we don't use the same presentation form
for domains and mailboxes, so must not use the same cache during
message decoding.

Since SOA rnames are rarely equal to another domain name in the
message, and the SOA RR is not even present in most successful
responses, the simplest solution is to neither store nor query the
cache for mailbox names, but instead always decode them from
scratch.
2020-11-02 10:16:31 +09:00
Kazu Yamamoto
ece37d5e35 Merge PR #155. 2020-11-02 10:10:35 +09:00
Viktor Dukhovni
e7f2e79419 New splitDomain and splitMailbox functions
- Change parseLabel to return Either DNSEror ... rather
  than throw an exception
- Use the internal parseLabel in new splitDomain and splitMailbox
  functions.
2020-10-30 20:30:36 -04:00