mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 13:46:07 +08:00
fixup
This commit is contained in:
parent
60f2595a60
commit
26b1913961
2 changed files with 24 additions and 1 deletions
24
documentation/language-reference/domain-modifiers/RP.md
Normal file
24
documentation/language-reference/domain-modifiers/RP.md
Normal 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 %}
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue