Commit 9636607
authored
Add new Domain Connect template for Blink.new (#704)
# Description
This pull request introduces a new Domain Connect template for the Blink
service, enabling automated DNS configuration for website hosting,
subdomains, email, and domain verification. The template defines all
required DNS records and variables for seamless integration
## Type of change
Please mark options that are relevant.
- [x] New template
- [ ] Bug fix (non-breaking change which fixes an issue in the template)
- [ ] New feature (non-breaking change which adds functionality to the
template)
- [ ] Breaking change (fix or feature that would cause existing template
behavior to be not backward compatible)
# How Has This Been Tested?
Please mark the following checks done
- [x] Schema validated using JSON Schema
[template.schema](./template.schema)
- [x] Template functionality checked using [Online
Editor](https://domainconnect.paulonet.eu/dc/free/templateedit)
- [x] Template is checked using [template
linter](https://github.com/Domain-Connect/dc-template-linter)
- [x] Template file name follows the pattern
`<providerId>.<serviceId>.json`
- [x] resource URL provided with `logoUrl` is actually served by a
webserver
# Example variable values
## Use Case 1: Apex Domain Setup (Website Hosting)
```
verification: abc123def456ghi789
ip1: 75.2.60.5
ip2: 99.83.231.61
target: proxy.blink.new
```
**Resulting Records:**
- TXT `_blink` → `blink-verify=abc123def456ghi789`
- A `@` → `75.2.60.5`
- A `@` → `99.83.231.61`
- CNAME `www` → `proxy.blink.new`
## Use Case 2: Subdomain Setup
```
verification: xyz789uvw456rst123
host: app
target: proxy.blink.new
```
**Resulting Records:**
- TXT `_blink` → `blink-verify=xyz789uvw456rst123`
- CNAME `app` → `proxy.blink.new`
## Use Case 3: SSL Certificate Validation (ACM)
```
acm_host: _abc123.example.com
acm_target: _abc123.acm-validations.aws
```
**Resulting Records:**
- CNAME `_abc123.example.com` → `_abc123.acm-validations.aws`
## Use Case 4: Email Setup (Full Configuration)
```
mx1: mx1.mailprovider.com
mx2: mx2.mailprovider.com
spf: mailprovider.com
dkim_selector: blink
dkim_value: v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
dmarc_email: [email protected]
```
**Resulting Records:**
- MX `@` → `mx1.mailprovider.com` (priority 10)
- MX `@` → `mx2.mailprovider.com` (priority 20)
- SPFM `@` → `include:mailprovider.com`
- TXT `blink._domainkey` → `v=DKIM1; k=rsa;
p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...`
- TXT `_dmarc` → `v=DMARC1; p=quarantine; rua=mailto:[email protected]`
## Complete Test Data Object
```json
"testData": {
"apex-domain": {
"variables": {
"verification": "abc123def456ghi789",
"ip1": "75.2.60.5",
"ip2": "99.83.231.61",
"target": "proxy.blink.new"
},
"results": [
{
"type": "TXT",
"host": "_blink",
"ttl": 600,
"data": "blink-verify=abc123def456ghi789"
},
{
"type": "A",
"host": "@",
"ttl": 600,
"pointsTo": "75.2.60.5"
},
{
"type": "A",
"host": "@",
"ttl": 600,
"pointsTo": "99.83.231.61"
},
{
"type": "CNAME",
"host": "www",
"ttl": 600,
"pointsTo": "proxy.blink.new"
}
]
},
"subdomain": {
"variables": {
"verification": "xyz789uvw456rst123",
"host": "app",
"target": "proxy.blink.new"
},
"results": [
{
"type": "TXT",
"host": "_blink",
"ttl": 600,
"data": "blink-verify=xyz789uvw456rst123"
},
{
"type": "CNAME",
"host": "app",
"ttl": 600,
"pointsTo": "proxy.blink.new"
}
]
},
"acm-validation": {
"variables": {
"acm_host": "_abc123",
"acm_target": "_abc123.acm-validations.aws"
},
"results": [
{
"type": "CNAME",
"host": "_abc123",
"ttl": 600,
"pointsTo": "_abc123.acm-validations.aws"
}
]
},
"email-setup": {
"variables": {
"mx1": "mx1.mailprovider.com",
"mx2": "mx2.mailprovider.com",
"spf": "mailprovider.com",
"dkim_selector": "blink",
"dkim_value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA",
"dmarc_email": "[email protected]"
},
"results": [
{
"type": "MX",
"host": "@",
"ttl": 600,
"pointsTo": "mx1.mailprovider.com",
"priority": 10
},
{
"type": "MX",
"host": "@",
"ttl": 600,
"pointsTo": "mx2.mailprovider.com",
"priority": 20
},
{
"type": "SPFM",
"host": "@",
"spfRules": "include:mailprovider.com"
},
{
"type": "TXT",
"host": "blink._domainkey",
"ttl": 600,
"data": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA"
},
{
"type": "TXT",
"host": "_dmarc",
"ttl": 600,
"data": "v=DMARC1; p=quarantine; rua=mailto:[email protected]"
}
]
}
}
```1 parent 9c7b86c commit 9636607
1 file changed
+96
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
0 commit comments