From 684d9b3c70df425496ffe132c7ce3a7276b44d95 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Wed, 27 Aug 2014 12:11:38 +0000 Subject: [PATCH] prettify the custom DNS docs --- management/templates/index.html | 10 ++++++++-- management/templates/system-dns.html | 10 +++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/management/templates/index.html b/management/templates/index.html index a524b3b6..8eba0a70 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -30,7 +30,7 @@ margin-bottom: 1.25em; } - h1, h2, h3 { + h1, h2, h3, h4 { font-family: Raleway, sans-serif; font-weight: bold; } @@ -44,7 +44,13 @@ border-bottom: 1px solid black; padding-bottom: 3px; margin-bottom: 13px; - margin-top: 26px; + margin-top: 30px; + } + + h4 { + font-size: 110%; + margin-bottom: 13px; + margin-top: 18px; } .panel { diff --git a/management/templates/system-dns.html b/management/templates/system-dns.html index ca0bb4eb..50aae8f2 100644 --- a/management/templates/system-dns.html +++ b/management/templates/system-dns.html @@ -31,22 +31,22 @@

It is possible to set custom DNS records on domains hosted here. For instance, you can create your own dynamic DNS service. To do so, you will need to call your box’s DNS API.

-

It works like this:

+

The HTTP POST request

+ +

Send a POST request like this:

curl -d "" --user {email}:{password} https://{{hostname}}/admin/dns/set/{qname}[/{rtype}[/{value}]]
-

The parameters are:

- - +
Parameter Value
email The email address of any administrative user here.
password That user’s password.
qname The fully qualified domain name for the record you are trying to set.
rtype Optional. The resource type: A (an IPv4 address; the default), AAAA (an IPv6 address), TXT (a text string), or CNAME (an alias, which is a fully qualified domain name).
rtype Optional. The resource type: A (an IPv4 address; the default), AAAA (an IPv6 address), TXT (a text string), or CNAME (an alias, which is a fully qualified domain name).
value Optional-ish. The new record’s value. If not provided, the IPv4 address of the remote host is used — this is handy for dynamic DNS! You can also set this in a POST parameter. To delete a record, pass “value=” in the POST body.
-

Examples:

+

Examples:

# sets laptop.mydomain.com to point to the IP address of the machine you are executing curl on
 curl -d "" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/laptop.mydomain.com