2018-03-22 09:30:09 -04:00
|
|
|
---
|
|
|
|
name: SRV
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- priority
|
|
|
|
- weight
|
|
|
|
- port
|
|
|
|
- target
|
|
|
|
- modifiers...
|
2023-01-12 16:59:42 -05:00
|
|
|
parameter_types:
|
|
|
|
name: string
|
|
|
|
priority: number
|
|
|
|
weight: number
|
|
|
|
port: number
|
|
|
|
target: string
|
|
|
|
"modifiers...": RecordModifier[]
|
2018-03-22 09:30:09 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
`SRV` adds a `SRV` record to a domain. The name should be the relative label for the record.
|
|
|
|
|
|
|
|
Priority, weight, and port are ints.
|
|
|
|
|
2023-03-13 21:30:21 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-06-18 05:35:13 +02:00
|
|
|
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
|
2018-03-22 09:30:09 -04:00
|
|
|
// Create SRV records for a a SIP service:
|
|
|
|
// pr w port, target
|
2023-06-17 14:58:17 +02:00
|
|
|
SRV("_sip._tcp", 10, 60, 5060, "bigbox.example.com."),
|
|
|
|
SRV("_sip._tcp", 10, 20, 5060, "smallbox1.example.com."),
|
2018-03-22 09:30:09 -04:00
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-13 21:30:21 +01:00
|
|
|
{% endcode %}
|