2018-03-22 21:30:09 +08:00
|
|
|
---
|
|
|
|
name: SRV
|
|
|
|
parameters:
|
|
|
|
- name
|
|
|
|
- priority
|
|
|
|
- weight
|
|
|
|
- port
|
|
|
|
- target
|
|
|
|
- modifiers...
|
|
|
|
---
|
|
|
|
|
|
|
|
`SRV` adds a `SRV` record to a domain. The name should be the relative label for the record.
|
|
|
|
|
|
|
|
Priority, weight, and port are ints.
|
|
|
|
|
2022-03-04 20:49:03 +08:00
|
|
|
{% capture example %}
|
2022-02-18 01:22:31 +08:00
|
|
|
```js
|
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
|
|
|
```
|
2022-03-04 20:49:03 +08:00
|
|
|
{% endcapture %}
|
2018-03-22 21:30:09 +08:00
|
|
|
|
2022-03-04 20:49:03 +08:00
|
|
|
{% include example.html content=example %}
|