1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Commit Graph

177 Commits

Author SHA1 Message Date
ebe3ecdf8f CHORE: Move NS test to its own function (#2318)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-05-07 09:27:41 -04:00
a8b0d4ca66 NS1 Fix URLFWD implementation by being more consistent (#2320) 2023-05-05 09:11:57 -04:00
f0ea71584f TESTING: add integration test for no trailing dot in nameservers (#2311)
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
2023-05-02 15:40:33 -04:00
489be2e3dc ROUTE53: fix R53_ZONE() handling for domains (#2306)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-05-02 13:04:59 -04:00
8f4a08a7e6 ROUTE53: Fix "No such DNS type error" on legacy or ignored records (#2294)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-05-01 18:33:29 -04:00
be8495c5e8 Integration tests should test diff2's IGNORE* (#2292)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-04-23 13:28:18 -05:00
60470a3886 BUG: Some DNS zones are downloaded twice (#2120)
Signed-off-by: Amelia Aronsohn <squirrel@wearing.black>
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
Co-authored-by: Grégoire Henry <hnrgrgr@users.noreply.github.com>
Co-authored-by: Amelia Aronsohn <squirrel@wearing.black>
Co-authored-by: Kai Schwarz <kschwarz@hexonet.net>
Co-authored-by: Asif Nawaz <asif.nawaz@centralnic.com>
Co-authored-by: imlonghao <git@imlonghao.com>
Co-authored-by: Will Power <1619102+willpower232@users.noreply.github.com>
2023-04-14 15:22:23 -04:00
8d79ee072f TESTING: Don't skip other tests when test failed (#2252)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-04-02 08:42:10 -04:00
036c8b23b3 CHORE: Alphabetize various code lists (#2242)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-03-28 19:30:01 -04:00
a8c9f9ada5 TESTS: comment fix (#2241) 2023-03-28 19:25:40 -04:00
d1748b5bc7 REFACTOR: Rearrange tests and add comments (#2232)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-03-26 08:54:45 -04:00
65bfdaee13 TESTING: Skip slow+useless tests for HEDNS (#2222)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-03-24 11:12:32 -04:00
178ab4635c TESTING: Add ByLabel and ByRecordSet tests (#2210) 2023-03-22 11:57:28 -07:00
367c83a3f5 LOC: Refine which providers support it (#2185) 2023-03-16 19:59:44 -04:00
3b6591fd95 NEW FEATURE: Support DNS LOC record type (#2174) 2023-03-16 14:04:20 -04:00
8e643c2856 New provider: Loopia DNS service provider (#2140)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-03-15 09:54:07 -04:00
eb4af05d31 DIGITALOCEAN: Improve TXT record handling (#2128) 2023-03-08 07:59:35 -08:00
b54c5eab10 ROUTE53: Report R53_ALIAS loops as an error (#2111) 2023-03-01 10:00:58 -05:00
2586e2b611 CORE: Clean up diff2 code in prep for production (#2104) 2023-02-28 01:25:09 -05:00
05dc26bf2e BUG: diff2: ttl changes don't always work (#2093) 2023-02-25 22:40:54 -05:00
fc3a217dc1 Bugfixed: NO_PURGE now works on all diff2 providers (#2084) 2023-02-19 12:33:08 -05:00
43c5b17ed8 CHORE: Add unit test for TTL changes on SRV records (#2067) 2023-02-19 10:57:41 -05:00
e3dc604247 AZURE_DNS: Convert to use diff2 natively (#2058) 2023-02-07 16:53:49 -05:00
325c8868ab TESTING: Add test for TTL change (#2062) 2023-02-07 14:55:01 -05:00
9eacd42b63 BUG: Integration test flag -end 0 doesnt stop at 0 (#2059) 2023-02-07 08:07:37 -05:00
e1ce6ff34f CLOUDFLARE: Adopt diff2 (#2040) 2023-02-01 16:18:01 -05:00
d8d25bf608 ROUTE53: Rewrite to use diff2 (#2012) 2023-01-31 10:12:26 -05:00
7ed849d10d NS1: Improve NS1_URLFWD handling (#2015) 2023-01-29 22:01:41 -05:00
572f2ce28c NETCUP: Adopt diff2 in compatibility mode (#1895) 2023-01-18 12:34:45 -05:00
9bb38c4526 CHORE: Remove references to TXTMulti (#1953) 2023-01-18 11:45:36 -05:00
397ce107e5 REFACTOR: Add a backwards compatible interface to diff2 (#1870) 2022-12-30 21:53:50 -05:00
b0f2945510 REFACTOR: Add diff2 enable flag to all DNS providers (#1851)
This should enable the diff2 code to be inserted with good "git blame" results for new code.  I'm adding this early to catch any problems early.
2022-12-11 15:02:58 -05:00
68516025a5 FEATURE: Add rTypes restrictions to IGNORE_NAME (#1808)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-11-07 11:27:04 -05:00
61e500b7dc DEV: Optimize integration tests (#1742) 2022-09-07 14:08:06 -04:00
9eda756a1b CHORE: Update AZUREDNS deps, (#1706)
* Update AZURE_DNS deps
* CHORE: Reduce test runtime for AZURE_DNS,GANDI_V5,CLOUDFLAREAPI
2022-08-15 10:14:10 -04:00
1010138fb6 gofmt -s -w 2022-08-14 20:49:57 -04:00
ccb582b278 CHORE: Linting (#1704)
* Remove deprecated io/ioutil
* fixup!
* staticcheck and linting
* revert models/provider.go
* Fix imports to new style
* linting
2022-08-14 20:46:56 -04:00
31723ad146 PERFORMANCE: Refactor auditrecords.go to loop only once #1570 (#1658)
* stash

* Use rejectif idea

* rename

* wip!

* Convert old systems to new

* fixup!

* fix typo
2022-08-11 17:24:47 -04:00
83a4b6a2f4 Remove ACTIVEDIRECTORY_PS (#1680) 2022-08-11 13:15:19 -04:00
befb52be86 DNSIMPLE: Fix TXT Handling, Second Edition (#1624)
* Fix typo and add sandbox information

* Use SetTargetTXT in GetZoneRecords

This fixes the behavior documented in #1622

Also apply cleanup to GetZoneRecords

* Remove SetTargetTXT, does not work in all tests

* Set The most correct TXT handling

* Well, There's your problem

* Add an audit and test for unpaired quotes

* Add some commentary

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-07-22 09:36:28 -04:00
9416140dd0 CHORE: Update Exoscale (#1626)
* CHORE: Update Exoscale

* go mod tidy
2022-07-18 10:45:25 -04:00
44001dc999 DOCS: Add tips about TXT records (#1622)
* Add tips about TXT records

* More comments

* Remove test temporarily

* go generate

* A a link to the test
2022-07-14 14:43:07 -04:00
9b42764419 Move IGNORE* tests to the end (#1623) 2022-07-14 12:50:10 -04:00
b0d80ae498 DNSIMPLE: do not support unpaired double quotes in TXT (#1610)
* DNSIMPLE: do not support unpaired double quotes in TXT

DNSimple supports multiple double-quotes strings in a TXT record, but does not correctly support unpaired or escaped double-quotes currently.

IE the following are valid
```
asdf
"asdf"
"asdf" "asdf"
!@#$ %^&*()([][{}{<></'`:;-_=+\
```

however `as\"df` and `as"df` are not

This removes the extra string processing in getTargetRecordPriority as all tests pass without it and currently only double-quotes cause problems in our TXT validations.

I added another test to prove additional quoting is not needed. We can remove it if undesired.

Also applied small lint changes to make my editor happy.

* Use backticks to prevent escaping

* Set TXT target record content to GetTargetRFC1035Quoted()

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-07-11 14:52:18 -04:00
14ae3732b6 DNSIMPLE: do not support spaces in CAA records. (#1606)
DNSimple does not support spaces in the records at this time. I have opened an internal ticket on the issue.

Fixes test breakage caused in #1377

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-07-09 01:14:04 -04:00
9ea125289b HETZNER: do not support spaces in CAA records (#1577)
As of 2022-06-23, the Hetzner DNS API is still responding with a 422
 when a CAA record contains a quoted value with spaces.
```
format: number of fields does not match record type, expecting 3
```
Their support acknowledged my bug report a few weeks back and suggested
 the removal of spaces to get past the limitation.
Spaces in CAA records are not common. Let's just skip the test and put
 a notice in the docs.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
2022-06-23 19:36:29 -04:00
752e25471d NEW PROVIDER: CSCGLOBAL as DNS Service Provider (#1516)
* Move the registrar features to a separate file

* Prepare the testing framework

* Roughed out functions

* Fix up structs

* WIP!

* First tests pass

* wip!

* Flesh out remaining rTypes, get nameservers, etc

* Fix TXT records

* Clean up code

* More cleanups. Fix CAA/SRV

* Linting

* Cleanups/linting

* Fix CAA [more] and more cleanups

* CSC does not like very long txt records

* Use timer only when interactive

* Disable CAA for now

* Update docs

* Remove debug printf

* add go-isatty

* cleanups
2022-06-12 16:01:08 -04:00
67baad392d GANDI_V5: Fix DS test / Eliminate SHA1 use in DS_Child tests (#1502) 2022-05-08 13:21:47 -04:00
19550aeed9 Refactor: Rename providers/config to pkg/credsfile (#1494) 2022-05-02 20:12:30 -04:00
41d994bab6 Eliminate models.StringsToNameservers() (#1486)
* Eliminate StringsToNameservers()

* update comments
2022-04-24 09:08:40 -04:00