Commit graph

708 commits

Author SHA1 Message Date
Paul Dee
8e643c2856
New provider: Loopia DNS service provider (#2140)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-03-15 09:54:07 -04:00
Kim Almasan
9beb00f6b1
Add tlsa to hetzner provider (#2168) 2023-03-15 09:44:18 -04:00
Tom Limoncelli
0491aadd36
BUG: Fix all err scopes (#2160) 2023-03-13 14:19:19 -04:00
0bf851ec06
New provider: LuaDNS (#2127) 2023-03-09 07:15:59 -08:00
Tom Limoncelli
eb4af05d31
DIGITALOCEAN: Improve TXT record handling (#2128) 2023-03-08 07:59:35 -08:00
Tom Limoncelli
b54c5eab10
ROUTE53: Report R53_ALIAS loops as an error (#2111) 2023-03-01 10:00:58 -05:00
Tom Limoncelli
cfb24dba77
AUTODNS: Convert to diff2 (#2102) 2023-02-28 11:36:23 -05:00
Tom Limoncelli
2586e2b611
CORE: Clean up diff2 code in prep for production (#2104) 2023-02-28 01:25:09 -05:00
Paul Dee
35c0386a3d
CSCGLOBAL: Fix comment typo (#2100) 2023-02-27 20:46:55 -05:00
Tom Limoncelli
169d7c8062
CHORE: linting (#2098) 2023-02-27 20:28:17 -05:00
Tom Limoncelli
4eab96226c
CLOUDNS: Adopt diff2 in compatibility mode (#1874) 2023-02-27 20:16:59 -05:00
Tom Limoncelli
bdeeb2cf1b
DNSMADEEASY: Adopt diff2 in compatibility mode (#1879) 2023-02-27 19:53:01 -05:00
Tom Limoncelli
f995f21d0e
PACKETFRAME: Adopt diff2 in compatibility mode (#1898) 2023-02-27 19:44:23 -05:00
Tom Limoncelli
3e3d655e77
RWTH: Adopt diff2 in compatibility mode (#1900) 2023-02-26 13:28:39 -05:00
Tom Limoncelli
05dc26bf2e
BUG: diff2: ttl changes don't always work (#2093) 2023-02-25 22:40:54 -05:00
Yannik Sembritzki
486851633a
HOSTINGDE: Fix modify referencing incorrect record id (fixes #2066) (#2092)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
2023-02-22 14:26:25 -05:00
Tom Limoncelli
fc3a217dc1
Bugfixed: NO_PURGE now works on all diff2 providers (#2084) 2023-02-19 12:33:08 -05:00
Florian Ritterhoff
fa67fcbc8b
NEW FEATURE: Colorize preview/push output (#2076) 2023-02-19 10:54:53 -05:00
Will Power
c24a88d08e
namecheap fix rate limit detection (#2081)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-02-19 00:13:57 -05:00
Tom Limoncelli
e3dc604247
AZURE_DNS: Convert to use diff2 natively (#2058) 2023-02-07 16:53:49 -05:00
Yannik Sembritzki
dc02d5b74f
Expect SOA mailbox in hostmaster@example.org format instead of hostmaster.example.org (#2037)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-02-07 09:25:41 -05:00
Yannik Sembritzki
5e06c249d6
Rename DomainCreator to the more accurate ZoneCreator (#2038)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-02-07 07:22:49 -05:00
Yannik Sembritzki
e8ae619f89
HOSTINGDE: Remove dnssec key from domain upon autodnssec disable (#2055)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
2023-02-07 07:09:18 -05:00
Yannik Sembritzki
222666414a
HOSTINGDE: Implement SOA record (fixes #1972) (#2023)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
2023-02-06 09:04:31 -05:00
Tom Limoncelli
f58bab22d6
MSDNS: Adopt diff2 (#2046) 2023-02-02 16:53:37 -05:00
Tom Limoncelli
90a4a3b225
MSDNS: Fix TXT record creation (#2051) 2023-02-02 15:45:16 -05:00
Tom Limoncelli
3793b56ec8
DESEC: Adopt diff2 in compatibility mode (#1876) 2023-02-02 09:27:30 -05:00
Tom Limoncelli
e1ce6ff34f
CLOUDFLARE: Adopt diff2 (#2040) 2023-02-01 16:18:01 -05:00
Tom Limoncelli
de202531cb
NEW FEATURE: NO_PURGE reports what is not purged (diff2 only) (#2031) 2023-02-01 07:27:00 -05:00
Yannik Sembritzki
bbabf66113
HOSTINGDE: Fix dnssec error resulting from non-go-conformant comparison of three values (#2036)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-31 22:12:54 -05:00
Yannik Sembritzki
1b224444c0
HOSTINGDE: Fix pushing changes when templateValues are set (fixes #2024) (#2035)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
2023-01-31 21:57:54 -05:00
Yannik Sembritzki
7f16c9ca6d
HOSTINGDE: Implement subaccount filtering feature (fixes #1974) (#2025)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-31 11:03:29 -05:00
Yannik Sembritzki
83299e178e
HOSTINGDE: Implement AutoDNSSEC (#2022)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
2023-01-31 11:02:32 -05:00
Yannik Sembritzki
1073e04577
HOSTINGDE: Implement ListZones (fixes #1975) (#2019)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-31 10:22:54 -05:00
Tom Limoncelli
d8d25bf608
ROUTE53: Rewrite to use diff2 (#2012) 2023-01-31 10:12:26 -05:00
Tom Limoncelli
f5e6564318
HEXONET: Adopt diff2 in compatibility mode (#1889) 2023-01-30 12:44:37 -05:00
Nicolas Lorin
fd393e39f5
VULTR: adopt diff2 in full mode (#2014)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-29 22:04:07 -05:00
Costas Drogos
7ed849d10d
NS1: Improve NS1_URLFWD handling (#2015) 2023-01-29 22:01:41 -05:00
Jeffrey Cafferata
430568c8f8
DOCS: Replace stackexchange.github.io (#2004)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-29 13:14:22 -05:00
Jeffrey Cafferata
fd7e642457
TRANSIP: Audit records (#2008)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-29 13:03:31 -05:00
Tom Limoncelli
37aa9fc838
ROUTE53: (CHORE) Rename variables for clarity (#2010) 2023-01-28 12:42:05 -05:00
Tom Limoncelli
a136621052
Improve warnings related to _ and TTLs (#1989) 2023-01-28 11:10:02 -05:00
Tom Limoncelli
8249a4b95b
Linting (#1996) 2023-01-28 11:09:38 -05:00
momoterraw
bb88b7c4b0
CLOUDFLARE: sometime ago they bump down the min ttl to 60 second (#1988) 2023-01-27 08:15:22 -05:00
Jeffrey Cafferata
222f50d986
BUG: TRANSIP: Wrong SRV record content (#1987) 2023-01-26 15:08:32 -05:00
Tom Limoncelli
cb88bdd068
GCLOUD: Adopt diff2 in compatibility mode (#1982) 2023-01-24 12:07:33 -05:00
Jeffrey Cafferata
b9b35d516e
TRANSIP: Implementation get-zones all (#1980)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-23 18:16:09 -05:00
Nicolas Lorin
8f09e3b03f
VULTR: Adopt diff2 in compatibility mode and fix handling of some integrations tests (#1981) 2023-01-23 18:11:24 -05:00
Tom Limoncelli
22c6797f83
AKAMAIEDGEDNS: Adopt diff2 in compatibility mode (#1872) 2023-01-23 15:26:41 -05:00
Tom Limoncelli
a1b24a2e82
GANDI_V5: Temporarily disable ListDomains (#1962) 2023-01-21 17:22:26 -05:00
Nicolas Lorin
178ec45254
VULTR: fix failing integration tests (#1956) 2023-01-20 13:32:25 -05:00
Tom Limoncelli
f4388dd6ad
CHORE: Fix broken merge (#1957) 2023-01-19 16:41:17 -05:00
Tom Limoncelli
8c8d08b72f
HOSTINGDE: Adopt diff2 in compatibility mode (#1890) 2023-01-19 13:04:09 -05:00
Amogh Lele
e73982c699
NETLIFY: Fix TXT record handling (#1955)
Signed-off-by: SphericalKat <amolele@gmail.com>
2023-01-18 16:11:28 -05:00
Tom Limoncelli
02431b5ffc
NETLIFY: Adopt diff2 in compatibility mode (#1896) 2023-01-18 14:03:16 -05:00
Tom Limoncelli
77df64d497
NAMECHEAP: Adopt diff2 in compatibility mode (#1894) 2023-01-18 12:35:19 -05:00
Tom Limoncelli
572f2ce28c
NETCUP: Adopt diff2 in compatibility mode (#1895) 2023-01-18 12:34:45 -05:00
Tom Limoncelli
9bb38c4526
CHORE: Remove references to TXTMulti (#1953) 2023-01-18 11:45:36 -05:00
Tom Limoncelli
b6ee7161a5
LINODE: Adopt diff2 in compatibility mode (#1892) 2023-01-18 08:42:22 -05:00
Julius Rickert
83b4a301dc
HOSTINGDE: Add simple exponential back-off retry (#1937)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-17 11:47:49 -05:00
Julius Rickert
2ebdda6971
HOSTINGDE: Fix & simplify string quoting (#1945)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-17 10:57:58 -05:00
Julius Rickert
8344f5c7c9
HOSTINGDE: BUG: PTR records aren't working (#1946)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-17 10:57:20 -05:00
Kordian Bruck
261961c5b8
NETCUP: Handle CNAMEs with a single @ as destination correctly (#1947) 2023-01-17 10:56:29 -05:00
Tom Limoncelli
b4cbd1299f
POWERDNS: Adopt diff2 in compatibility mode (#1899) 2023-01-13 13:00:49 -05:00
Tom Limoncelli
43af16aad2
EXOSCALE: Adopt diff2 in compatibility mode (#1881) 2023-01-13 11:21:22 -05:00
Tom Limoncelli
48f642cd54
CSCGLOBAL: Adopt diff2 in compatibility mode (#1875) 2023-01-12 16:32:29 -05:00
Robert Blenkinsopp
99a0eb84f6
HEDNS: Add full Diff2 support (#1915)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-09 16:20:03 -05:00
Tom Limoncelli
9b6a69c4c5 AZURE_DNS: Defend against nil targets 2023-01-09 12:51:18 -05:00
Nick Gregory
6f2b183b25
ORACLE: resolve "change to A" test fail (#1912)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-09 11:29:11 -05:00
Vincent Hagen
0403b2c82d
TRANSIP: Fix quoting of TXT records (#1918)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-09 10:24:23 -05:00
Vincent Hagen
01829a2dc0
TRANSIP: For modifications always remove and re-add records (#1920)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2023-01-09 10:23:36 -05:00
Tom Limoncelli
30c653eeba
INWX: Adopt diff2 in compatibility mode (#1891) 2023-01-09 08:51:45 -05:00
Tom Limoncelli
8f8c0abaf3
AXFRDDNS: Adopt diff2 in compatibility mode (#1905) 2023-01-03 13:06:21 -05:00
Tom Limoncelli
a498679c72
DNSIMPLE: Adopt diff2 in compatibility mode (#1878) 2023-01-03 11:58:21 -05:00
Tom Limoncelli
347808f030
ORACLE: Adopt diff2 in compatibility mode (#1897) 2023-01-03 08:51:12 -05:00
Tom Limoncelli
c62a85a003
MSDNS: Adopt diff2 in compatibility mode (#1893) 2023-01-02 10:17:44 -05:00
Tom Limoncelli
4083a0ce7e
HETZNER: Adopt diff2 in compatibility mode (#1888) 2023-01-02 08:27:33 -05:00
Tom Limoncelli
cc132b7268
DIGITALOCEAN: Adopt diff2 in compatibility mode (#1877) 2023-01-02 08:25:51 -05:00
Tom Limoncelli
f8fd853a02
HEDNS: Adopt diff2 in compatibility mode (#1887) 2023-01-02 08:25:23 -05:00
Tom Limoncelli
e0fef398be
DOMAINNAMESHOP: Adopt diff2 in compatibility mode (#1880) 2023-01-01 22:44:05 -05:00
Tom Limoncelli
bec7e1e865
OCTODNS: Remove octodns provider (#1910) 2023-01-01 14:52:22 -05:00
Tom Limoncelli
5f2dd2fdf2
SOFTLAYER: Adopt diff2 in compatibility mode (#1901) 2023-01-01 13:18:37 -05:00
Florian Ritterhoff
4cf4d34ca6
Add missing MD5 support (#1866) 2022-12-31 06:13:44 -05:00
Tom Limoncelli
96e4e88fc5
Cleanups (#1871) 2022-12-30 22:03:36 -05:00
Tom Limoncelli
397ce107e5
REFACTOR: Add a backwards compatible interface to diff2 (#1870) 2022-12-30 21:53:50 -05:00
Yuhui Xu
801aae725b
GCORE: Implement diff2 and greatly improve performance for getting record sets (#1867)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-12-30 21:38:01 -05:00
Costas Drogos
7654107614
NS1: Add support for diff2 (#1858)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-12-19 14:57:48 -05:00
Brice Figureau
6947388dc1
OVH: Adopt diff2 (#1861) 2022-12-19 10:21:54 -05:00
Costas Drogos
7ad98a67f9
NS2: Update ns1 to 2.7.2 (#1857) 2022-12-18 06:09:53 -08:00
imlonghao
87c32df0c9
PORKBUN: support diff2 and two small changes (#1855) 2022-12-12 11:49:32 -05:00
Tom Limoncelli
54fc2e9ce3
NEW FEATURE: diff2: A better "diff" mechanism (#1852) 2022-12-11 17:28:58 -05:00
Tom Limoncelli
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
Tom Limoncelli
fa52b4f2ae
GANDI_V5: Gandi now supports null MX (#1847)
Co-authored-by: Filippo Valsorda <github@bip.filippo.io>
2022-12-07 10:06:27 -05:00
Jed Fox
cc2fb89b00
DOCS: Remove Cannot() records for Azure and R53 ALIAS records (#1827)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-12-02 09:21:37 -05:00
Amogh Lele
5b95c099f6
NETLIFY: bugfix: append . to records which point to hosts (#1828)
Signed-off-by: Amogh Lele <amolele@gmail.com>
2022-11-30 09:23:52 -05:00
Amogh Lele
1618aceb2a
NEW PROVIDER: Netlify (#1820)
Signed-off-by: Amogh Lele <amolele@gmail.com>
2022-11-28 11:01:35 -05:00
imlonghao
d90ca157e4
PORKBUN: New provider (#1819)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-11-26 11:36:17 -05:00
Nicolas Lorin
caf7467cdd
VULTR: BUGFIX: Wrong records are occasionally modified (#1822) 2022-11-26 11:21:09 -05:00
Patrick Gaskin
f209111728
VULTR: Use keyed fields for govultr struct literals (#1818) 2022-11-15 12:57:52 -05:00
Yuhui Xu
35818299c0
NEW PROVIDER: Gcore DNS (#1816) 2022-11-15 12:40:08 -05:00
Amelia Aronsohn
a6043df648
DNSIMPLE: Support new name server handling changes (#1806) 2022-11-04 14:54:48 -04:00
Jeffrey Cafferata
3f760cdd25
DOCS: Documentation improvements (#1786)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-10-31 18:09:43 -04:00
Jeffrey Cafferata
b66af29aec
BUG: Re-introducing the cloudflare/cloudflare-go import (#1795)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-10-31 07:02:30 -04:00
Tom Limoncelli
1aca045d5b
DOCS: Fix many small typos (#1794)
Co-authored-by: Jeffrey Cafferata <jeffrey@jcid.nl>
2022-10-30 13:56:45 -04:00
Nicolas Lorin
2898fbad72
VULTR: use API v2 (#1768) 2022-10-12 18:17:15 -04:00
Amelia Aronsohn
1c726a08ad
DNSimple: Update to 1.0.0 Client & expose error attributes (#1756) 2022-09-23 11:55:09 -04:00
Predrag Janosevic
128e075066
EXOSCALE: Migrate to v2 API (#1748)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-09-14 14:58:55 -04:00
Brian Hartvigsen
49590df8bf
DIGITALOCEAN: semicolon as CAA target is now supported (#1749) 2022-09-14 07:18:53 -04:00
Tom Limoncelli
3743c7de03
Bump cloudflare/cloudflare-go from 0.46 to 0.49 (#1746)
Co-authored-by: Brian Hartvigsen <brian.andrew@brianandjenny.com>
2022-09-12 08:58:44 -04:00
Tom Limoncelli
61e500b7dc
DEV: Optimize integration tests (#1742) 2022-09-07 14:08:06 -04:00
Srdjan Markovic
639a4473d7
DESEC: Check authentication via domains API (#1723)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-27 09:02:51 -04:00
Tom Limoncelli
d907cdd2c2
CHORE: gofmt (#1727) 2022-08-20 20:42:16 -04:00
Simen Bai
0d9bdc2ddc
DOMAINNAMESHOP: Domainnameshop documentation update (#1726)
Co-authored-by: Simen Bai <git@simenbai.no>
2022-08-20 00:51:25 -04:00
Tom Limoncelli
b2af4332f1
MSDNS: MSDNS auto-disable message is now more accurate (#1719)
[skip ci]
2022-08-16 18:09:54 -04:00
Tom Limoncelli
d1a63abc0d
CLOUDFLARE: Increase retry limits (#1713)
* change policy to 20, 1, 120 (20 retries, min delay 1 sec, max delay 2 minutes)
2022-08-15 18:30:21 -04:00
Tom Limoncelli
1010138fb6 gofmt -s -w 2022-08-14 20:49:57 -04:00
Tom Limoncelli
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
Tom Limoncelli
cd61c2c766
CHORE: Remove deprecated io/ioutil (#1699)
* Remove deprecated io/ioutil

* fixup!

* fixup!
2022-08-14 12:50:15 -04:00
Vatsalya Goel
5e8bb6e461
AZURE_DNS: Adopt new "armdns" SDK (#1701)
* Switch to the new Azure sdk for go

* use codeql 1.18 as 1.17 doesn't work with azidentity

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-14 07:42:41 -04:00
Tom Limoncelli
09a53b4d68
CLOUDFLAREAPI: Clarify source of error in message (#1700) 2022-08-14 07:33:05 -04:00
Tom Limoncelli
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
Tom Limoncelli
d6f1575ae5
BUG: MSDNS and CSCGLOBAL get records twice (#1688) 2022-08-11 15:40:13 -04:00
Tom Limoncelli
83a4b6a2f4
Remove ACTIVEDIRECTORY_PS (#1680) 2022-08-11 13:15:19 -04:00
Tom Limoncelli
f24c250c46
CLOUDFLARE: Error messages should indicate which cred entry (#1690) 2022-08-11 13:10:06 -04:00
Costas Drogos
dbfd2b7cb4
ns1: workaround an issue with ns1 API (#1671)
NS1 api returns a different message these days, which breaks error handling.

Until a fix is merged upstream, work around the issue by attempting to match the
stray error ourselves.

relates to #1667.
2022-08-09 16:29:54 -04:00
Tom Limoncelli
eba4155cb9
CSCGLOBAL: Improve performance by waiting less (#1669)
* Fix broken test
* Revert to the slow+safe CSC algorithm
* Instead of waiting for COMPLETED, wait for PROPAGATING to begin.
* improve error messages
* cleanup
2022-08-09 10:00:03 -04:00
Tom Limoncelli
ec8bfe4b6d
CSCGLOBAL: Use slow and safe algorithm (#1663)
* Fix broken test

* CLOUDFLARE: Fix missing nameserver bug

* CSCGLOBAL: Catch more status states

* wip!

* remove extra print

* Revert to the slow+safe CSC algorithm
2022-08-08 13:23:47 -04:00
Tom Limoncelli
dd3416674f
CLOUDFLARE: Fix domain list cache error (#1662)
* Fix broken test

* CLOUDFLARE: Fix missing nameserver bug

* CSCGLOBAL: Catch more status states

* wip!

* remove extra print
2022-08-08 13:00:58 -04:00
Jeffrey Cafferata
1b3471835c
TRANSIP: Enable ALIAS-record (#1661)
- https://www.transip.nl/nieuws/alias-records/
2022-08-08 08:35:09 -04:00
MisterErwin
7865e37c8f
Add RWTH provider (#1629)
* Add RWTH provider

* fix Owners order

* Reorganize RWTH Provider

* Fix staticcheck and code style issues

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-04 14:40:27 -04:00
Jakob Ackermann
a00572af4a
Create zone before use (#1642)
* preview/push: ensure zones exists before querying them

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* HETZNER: reset zone cache when creating a new zone

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* ROUTE53: reset zone cache when creating a new zone

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-01 14:44:17 -04:00
Simen Bai
e9510da434
Domainnameshop provider (#1625)
* Added basic structure for domain name shop

* Finished proof of concept for domainnameshop

* Fixed handeling of IDNA for CNAME records

* Updated documentation notes

* Added docs

* Ran linter and vet

* Removed proxy config used for debugging

* Ran go generate

* Fixed issue with TTLs being restricted to a multiple of 60

* Ran tests, vet and linting and fixed flaws

* Fixed typo in docs

* Improved code based on feedback

* Fixed issues with TXT records not working properly

* Refactored according to new file layout proposed

* Updated documentation matrix

* Suggestions and corrections

* Corrected according to suggestions

Co-authored-by: Simen Bai <git@simenbai.no>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-08-01 12:01:37 -04:00
Amelia Aronsohn
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
Tom Limoncelli
15e6c95042
CSCGLOBAL: Lazy-check API results, saving 5-7 minutes per domain (#1638) 2022-07-21 14:35:37 -04:00
Tom Limoncelli
b2bef175e0
GANDI_V5: better error handling (#1639)
* GANDI_V5: better error handling

* use newer parsers

* fixup!
2022-07-21 14:30:26 -04:00
Tom Limoncelli
4d768afc3d
CSCGLOBAL: Support TXT records that are long or include double-quotes (#1631)
* Remove TXT restrictions around length

* Improve get-zones "js" format.

New:

```
$ dnscontrol get-zone --format js providercredkey - stackoverflow.co.il
var DSP_PROVIDERCREDKEY = NewDnsProvider("providercredkey");
var REG_CHANGEME = NewRegistrar("none");
D("stackoverflow.co.il", REG_CHANGEME,
	DnsProvider(DSP_PROVIDERCREDKEY),
	DefaultTTL(14400),
	A('www', '165.160.15.20'),
	...
	...
	...
	...
	//NAMESERVER('dns1.cscdns.net.'),
	//NAMESERVER('dns2.cscdns.net.')
)
```

* Update test data
2022-07-19 17:48:15 -04:00
Tom Limoncelli
c7d3667d87
NAMEDOTCOM: Better estimate TXT length restrictions (#1627) 2022-07-18 10:30:19 -04:00
Tom Limoncelli
a0a917266f
MSDNS: Add missing newline to PS warning (#1614) 2022-07-12 14:48:01 -04:00
Amelia Aronsohn
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
Amelia Aronsohn
72ae22fd54
DNSIMPLE: do not support DS records (#1608)
DNSimple does not support adding your own DS records at this time.

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-07-09 01:12:46 -04:00
Markus Enander
0f04639891
Enable ADC for Gcloud provider (#1583)
Fallback to using Application Default Credentials if no
private_key is available in the creds.json-file.

This allows usage with various short lived credentials, for example
GCE-instances, gcloud auth application-default login, OIDC Workload
Identity etc

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-07-05 15:53:51 -04:00
Jan-Philipp Benecke
e9bf00f581
POWERDNS: Cleanup and fix parsing of TXT records (#1569)
* POWERDNS: Cleanup and fix parsing of TXT records

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* Add unit tests for convert functions

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>
2022-06-20 14:35:13 -04:00
Jan-Philipp Benecke
e5de7b5359
MAINT: Restructuring of the PowerDNS DSP based on the layout of CSCGlobal (#1549)
* Restructure PowerDNS DSP based on layout for CSCGlobal

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* Rename api to dsp and make initializer function private

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2022-06-20 12:27:05 -04:00
Tom Limoncelli
959f721c04
MAINT: Update TXT docs, suggest not using TxtNoLen255 (#1548)
* suggest not using TxtNoLen255

* Rename functions

* wip!

* fixing!
2022-06-20 11:34:05 -04:00
Tom Limoncelli
dad4115a55
CLOUDFLAREAPI: Fix TXT quoting bug (#1543)
* Cleanup

* wip!

* Fix cloudflare quote bug

* wip!

* cleanup

* go generate
2022-06-18 09:58:55 -04:00
Jan-Philipp Benecke
bcb968411a
MAINT: Unify provider outputs to pkg/printer (#1546)
* Unify provider outputs to pkg/printer

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* No need for custom Errorf

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* Add missing import for activedir

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* Add missing fmt import for activedir

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>
2022-06-18 09:01:02 -04:00
Jan-Philipp Benecke
ba2c7f9c0e
MAINT: Enforcing formatted code (#1544)
* Enforcing formatted code

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* Show lines

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>

* Run check after deps are installed

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>
2022-06-18 08:56:04 -04:00
Tom Limoncelli
cbf5ebd64c
CLOUDFLAREAPI: Fix quoted TXT bug (#1538)
* Cleanup

* add GetTargetQuotedRFC1038

* wip!

* The RFC is 1035
2022-06-16 17:16:29 -04:00
Tom Limoncelli
cc0fecf1f7 Revert "CLOUDFLAREAPI: Fix TXT records with quotes"
This reverts commit c3f52d228a.
2022-06-16 15:21:45 -04:00
Tom Limoncelli
c3f52d228a CLOUDFLAREAPI: Fix TXT records with quotes 2022-06-16 15:19:44 -04:00