2018-03-22 21:30:09 +08:00
|
|
|
---
|
|
|
|
name: SRV
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- priority
|
|
|
|
- weight
|
|
|
|
- port
|
|
|
|
- target
|
|
|
|
- modifiers...
|
2023-01-13 05:59:42 +08:00
|
|
|
parameter_types:
|
|
|
|
name: string
|
|
|
|
priority: number
|
|
|
|
weight: number
|
|
|
|
port: number
|
|
|
|
target: string
|
|
|
|
"modifiers...": RecordModifier[]
|
2018-03-22 21:30:09 +08: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-14 04:30:21 +08:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2018-03-22 21:30:09 +08:00
|
|
|
D("example.com", REGISTRAR, DnsProvider("GCLOUD"),
|
|
|
|
// Create SRV records for a a SIP service:
|
|
|
|
// pr w port, target
|
|
|
|
SRV('_sip._tcp', 10, 60, 5060, 'bigbox.example.tld.'),
|
|
|
|
SRV('_sip._tcp', 10, 20, 5060, 'smallbox1.example.tld.'),
|
|
|
|
);
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2023-03-14 04:30:21 +08:00
|
|
|
{% endcode %}
|