From 6499c82d7fd26cd72a1bd43493bdadb6f411f6d4 Mon Sep 17 00:00:00 2001 From: Francisco de Juan Date: Sun, 4 Jan 2015 10:23:34 +0100 Subject: [PATCH] explain how to add SRV records to DNS zonefile using the API --- management/templates/custom-dns.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index 6ae981d2..b866a357 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -124,6 +124,12 @@ curl -d "" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/bar. # sets a TXT record using the alternate value syntax curl -d "value=something%20here" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/foo.mydomain.com/txt + +# sets a SRV record for the "service" and "protocol" hosted on "target" server +curl -d "" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/_service._protocol.{{hostname}}/srv/"priority weight port target" + +# sets a SRV record using the value syntax +curl -d "value=priority weight port target" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/_service._protocol.host/srv