1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

ClouDNS: Add CLOUDNS_WR (Web Redirects) (#1421)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
tpdn
2022-03-02 23:21:51 +09:00
committed by GitHub
parent 1f741088a9
commit fc75f89271
5 changed files with 19 additions and 2 deletions

View File

@ -32,6 +32,20 @@ DS records in the same update, the NS records will be inserted first.
## Metadata
This provider does not recognize any special metadata fields unique to ClouDNS.
## Web Redirects
ClouDNS supports ClouDNS-specific "WR record (web redirects)" for your domains.
Simply use the `CLOUDNS_WR` functions to make redirects like any other record:
```js
var REG_NONE = NewRegistrar('none', 'NONE')
var CLOUDNS = NewDnsProvider("cloudns", "CLOUDNS");
D("example.tld", REG_NONE, DnsProvider(CLOUDNS),
CLOUDNS_WR('@', 'http://example.com/'),
CLOUDNS_WR('www', 'http://example.com/')
)
```
## Usage
Example Javascript: