From 26b19139613ac90c2c05d457d4a65e0fe85cf4cd Mon Sep 17 00:00:00 2001 From: Thomas Limoncelli Date: Thu, 4 Dec 2025 11:37:42 -0500 Subject: [PATCH] fixup --- .../language-reference/domain-modifiers/RP.md | 24 +++++++++++++++++++ providers/gandiv5/convert.go | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 documentation/language-reference/domain-modifiers/RP.md diff --git a/documentation/language-reference/domain-modifiers/RP.md b/documentation/language-reference/domain-modifiers/RP.md new file mode 100644 index 000000000..160e00977 --- /dev/null +++ b/documentation/language-reference/domain-modifiers/RP.md @@ -0,0 +1,24 @@ +--- +name: RP +parameters: + - name + - mbox + - txt + - modifiers... +parameter_types: + name: string + address: string + "modifiers...": RecordModifier[] +--- + +`RP()` adds an RP record to a domain. + +The RP implementation in DNSControl is still experimental and may change. + +{% code title="dnsconfig.js" %} +```javascript +D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER), + RP("@", "user.example.com.", "example.com."), +); +``` +{% endcode %} diff --git a/providers/gandiv5/convert.go b/providers/gandiv5/convert.go index a6d020cff..882e8bfa5 100644 --- a/providers/gandiv5/convert.go +++ b/providers/gandiv5/convert.go @@ -30,7 +30,6 @@ func nativeToRecords(n livedns.DomainRecord, origin string) (rcs []*models.Recor rtype := n.RrsetType if rtypeinfo.IsModernType(rtype) { - // func NewRecordConfigFromString(name string, ttl uint32, t string, s string, dc *models.DomainConfig) (*models.RecordConfig, error) { rc, err = rtypecontrol.NewRecordConfigFromString(n.RrsetName, uint32(n.RrsetTTL), rtype, value, dc) if err != nil { return nil, fmt.Errorf("unparsable record received from gandi: %w", err)