github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/domain-modifiers/SRV.md (about)

     1  ---
     2  name: SRV
     3  parameters:
     4    - name
     5    - priority
     6    - weight
     7    - port
     8    - target
     9    - modifiers...
    10  parameter_types:
    11    name: string
    12    priority: number
    13    weight: number
    14    port: number
    15    target: string
    16    "modifiers...": RecordModifier[]
    17  ---
    18  
    19  `SRV` adds a `SRV` record to a domain. The name should be the relative label for the record.
    20  
    21  Priority, weight, and port are ints.
    22  
    23  {% code title="dnsconfig.js" %}
    24  ```javascript
    25  D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
    26    // Create SRV records for a a SIP service:
    27    //               pr  w   port, target
    28    SRV("_sip._tcp", 10, 60, 5060, "bigbox.example.com."),
    29    SRV("_sip._tcp", 10, 20, 5060, "smallbox1.example.com."),
    30  END);
    31  ```
    32  {% endcode %}