github.com/philhug/dnscontrol@v0.2.4-0.20180625181521-921fa9849001/docs/_functions/domain/SRV.md (about) 1 --- 2 name: SRV 3 parameters: 4 - name 5 - priority 6 - weight 7 - port 8 - target 9 - modifiers... 10 --- 11 12 `SRV` adds a `SRV` record to a domain. The name should be the relative label for the record. 13 14 Priority, weight, and port are ints. 15 16 {% include startExample.html %} 17 {% highlight js %} 18 19 D("example.com", REGISTRAR, DnsProvider("GCLOUD"), 20 // Create SRV records for a a SIP service: 21 // pr w port, target 22 SRV('_sip._tcp', 10, 60, 5060, 'bigbox.example.tld.'), 23 SRV('_sip._tcp', 10, 20, 5060, 'smallbox1.example.tld.'), 24 ); 25 26 {%endhighlight%} 27 {% include endExample.html %}