🚀
🚀
🚀
🚀
DNSControl
Search
⌃K
Introduction to DNSControl
Getting Started
Overview
Examples
Migrating zones to DNSControl
TypeScript autocomplete and type checking
Language Reference
JavaScript DSL
Top Level Functions
Domain Modifiers
A
AAAA
ALIAS
AUTODNSSEC_OFF
AUTODNSSEC_ON
CAA
CNAME
DS
DefaultTTL
DnsProvider
FRAME
IGNORE
IGNORE_NAME
IGNORE_TARGET
IMPORT_TRANSFORM
INCLUDE
LOC
MX
NAMESERVER
NAMESERVER_TTL
NAPTR
NO_PURGE
NS
PTR
PURGE
SOA
SRV
SSHFP
TLSA
TXT
URL
URL301
Service Provider specific
Record Modifiers
Why CNAME/MX/NS targets require a "dot"
Service Providers
Providers
Commands
creds.json
check-creds
get-certs
get-zones
Advanced features
CI/CD example for GitLab
CLI variables
Nameservers and Delegations
Notifications
Useful code tricks
Developer info
Style Guide
DNSControl is an opinionated system
Writing new DNS providers
Creating new DNS Resource Types (rtypes)
Integration Tests
Unit Testing DNS Data
Bug Triage Process
Bring-Your-Own-Secrets for automated testing
Debugging with dlv
ALIAS Records
TXT record testing
Release
How to build and ship a release
Changelog v3.16.0
GitHub releases
Powered By GitBook

SRV

SRV adds a SRV record to a domain. The name should be the relative label for the record.
Priority, weight, and port are ints.
dnsconfig.js
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.'),
);
Previous
SOA
Next
SSHFP
Last modified 19d ago
Copy link
Edit on GitHub