From 9beb00f6b1a2e34f555e45296e52e62cc195fcca Mon Sep 17 00:00:00 2001 From: Kim Almasan Date: Wed, 15 Mar 2023 14:44:18 +0100 Subject: [PATCH] Add tlsa to hetzner provider (#2168) --- commands/types/dnscontrol.d.ts | 11 +++++++++-- documentation/providers.md | 2 +- providers/hetzner/hetznerProvider.go | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/commands/types/dnscontrol.d.ts b/commands/types/dnscontrol.d.ts index 6663c81f7..426e0f8ab 100644 --- a/commands/types/dnscontrol.d.ts +++ b/commands/types/dnscontrol.d.ts @@ -796,6 +796,7 @@ declare function NAMESERVER(name: string, ...modifiers: RecordModifier[]): Domai * ``` * * Use `NAMESERVER_TTL('3600'),` or `NAMESERVER_TTL('1h'),` for a 1h default TTL for all subsequent `NS` entries: + * * ```javascript * D('example.com', REGISTRAR, DnsProvider('xyz'), * DefaultTTL("4h"), @@ -1133,11 +1134,15 @@ declare function NS1_URLFWD(name: string, target: string, ...modifiers: RecordMo * // If the first parameter is a valid IP address, DNSControl will generate the correct name: * PTR('1.2.3.10', 'ten.example.com.'), // '10' * ); + * ``` * + * ```javascript * D(REV('9.9.9.128/25'), REGISTRAR, DnsProvider(BIND), * PTR('9.9.9.129', 'first.example.com.'), * ); + * ``` * + * ```javascript * D(REV('2001:db8:302::/48'), REGISTRAR, DnsProvider(BIND), * PTR('1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0', 'foo.example.com.'), // 2001:db8:302::1 * // If the first parameter is a valid IP address, DNSControl will generate the correct name: @@ -2068,8 +2073,10 @@ declare function CAA_BUILDER(opts: { label?: string; iodef: string; iodef_critic * ], * failureOptions: '1', * reportInterval: '1h', - * }), + * }); + * ``` * + * ```javascript * DMARC_BUILDER({ * label: 'insecure', * policy: 'none', @@ -2080,7 +2087,7 @@ declare function CAA_BUILDER(opts: { label?: string; iodef: string; iodef_critic * SPF: false, * DKIM: true, * }, - * }) + * }); * ``` * * This yields the following records: diff --git a/documentation/providers.md b/documentation/providers.md index 48a8b5ea2..6bcd68176 100644 --- a/documentation/providers.md +++ b/documentation/providers.md @@ -34,7 +34,7 @@ If a feature is definitively not supported for whatever reason, we would also li | `GCLOUD` | ✅ | ✅ | ❌ | ❔ | ❔ | ✅ | ✅ | ❔ | ❔ | ✅ | ✅ | ✅ | ❔ | ✅ | ✅ | ✅ | ✅ | | `GCORE` | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❔ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | | `HEDNS` | ❌ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | -| `HETZNER` | ❌ | ✅ | ❌ | ❌ | ❔ | ✅ | ❌ | ❔ | ❔ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | +| `HETZNER` | ❌ | ✅ | ❌ | ❌ | ❔ | ✅ | ❌ | ❔ | ❔ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | | `HEXONET` | ❌ | ✅ | ✅ | ❌ | ❔ | ✅ | ✅ | ❔ | ❔ | ✅ | ❔ | ✅ | ❔ | ✅ | ✅ | ✅ | ❔ | | `HOSTINGDE` | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | `INTERNETBS` | ❌ | ❌ | ✅ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❌ | ✅ | ❔ | diff --git a/providers/hetzner/hetznerProvider.go b/providers/hetzner/hetznerProvider.go index b245b7f67..bc886a3b4 100644 --- a/providers/hetzner/hetznerProvider.go +++ b/providers/hetzner/hetznerProvider.go @@ -20,7 +20,7 @@ var features = providers.DocumentationNotes{ providers.CanUsePTR: providers.Cannot(), providers.CanUseSRV: providers.Can(), providers.CanUseSSHFP: providers.Cannot(), - providers.CanUseTLSA: providers.Cannot(), + providers.CanUseTLSA: providers.Can(), providers.DocCreateDomains: providers.Can(), providers.DocDualHost: providers.Can(), providers.DocOfficiallySupported: providers.Cannot(),