This commit is contained in:
Thomas Limoncelli 2025-12-04 11:37:42 -05:00
parent 60f2595a60
commit 26b1913961
No known key found for this signature in database
2 changed files with 24 additions and 1 deletions

View file

@ -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 %}

View file

@ -30,7 +30,6 @@ func nativeToRecords(n livedns.DomainRecord, origin string) (rcs []*models.Recor
rtype := n.RrsetType rtype := n.RrsetType
if rtypeinfo.IsModernType(rtype) { 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) rc, err = rtypecontrol.NewRecordConfigFromString(n.RrsetName, uint32(n.RrsetTTL), rtype, value, dc)
if err != nil { if err != nil {
return nil, fmt.Errorf("unparsable record received from gandi: %w", err) return nil, fmt.Errorf("unparsable record received from gandi: %w", err)