Add README and make some sanity changes.
This commit is contained in:
30
README.md
Normal file
30
README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# DNSControl Configuration
|
||||
|
||||
## Overview
|
||||
|
||||
| Domain | Purpose |
|
||||
|----------------|--------------------------------|
|
||||
| `arirex.me` | Primary domain |
|
||||
| `achl.fr` | Legacy domain |
|
||||
| `arirex.email` | Email proxy for primary domain |
|
||||
| `achlfr.email` | Email proxy for legacy domain |
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Unlock credentials
|
||||
git-crypt unlock
|
||||
|
||||
# Check planned changes
|
||||
dnscontrol preview
|
||||
|
||||
# Apply DNS changes
|
||||
dnscontrol push
|
||||
```
|
||||
|
||||
## Update
|
||||
|
||||
```bash
|
||||
nix flake update
|
||||
dnscontrol write-types
|
||||
```
|
||||
17
dnsconfig.js
17
dnsconfig.js
@@ -30,9 +30,14 @@ DEFAULTS(
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
/* ****************************************************************************************************************** *\
|
||||
Primary Domains
|
||||
Managed Domains
|
||||
\* ****************************************************************************************************************** */
|
||||
|
||||
/* -------------------------------------------------------------------------- *\
|
||||
Primary Domains
|
||||
\* -------------------------------------------------------------------------- */
|
||||
D("arirex.me", REG_101DOMAIN,
|
||||
ALIAS("@", rexbox),
|
||||
protonmail("6fd60590dc31588ca5a85c7e311649ff5f93cab2", "dodai2qaszneyk5jeyfloq24ttjcqfer2gdopw3nfmxn3bugtw2hq"),
|
||||
@@ -59,9 +64,9 @@ D("achl.fr", REG_101DOMAIN,
|
||||
|
||||
);
|
||||
|
||||
/* ****************************************************************************************************************** *\
|
||||
/* -------------------------------------------------------------------------- *\
|
||||
Email Proxy Domains
|
||||
\* ****************************************************************************************************************** */
|
||||
\* -------------------------------------------------------------------------- */
|
||||
D("arirex.email", REG_101DOMAIN,
|
||||
simplelogin("ngmfowygibangqmiobjznfmjhxniyi"),
|
||||
);
|
||||
@@ -136,9 +141,9 @@ cnames("arirex.me", rexcloud, [
|
||||
* @param {string[]} records - Array of "comment@subdomain" strings
|
||||
*/
|
||||
function cnames(domain, target, records) {
|
||||
records.forEach(function(r) {
|
||||
var parts = r.split("@");
|
||||
D_EXTEND(domain, CNAME(parts[1], target, CF_COMMENT(parts[0])));
|
||||
records.forEach(function(rec) {
|
||||
var part = rec.split("@");
|
||||
D_EXTEND(domain, CNAME(part[1], target, CF_COMMENT(part[0])));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user