-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnsconfig.js
44 lines (34 loc) · 1000 Bytes
/
dnsconfig.js
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
// Providers
var REG_OVH = NewRegistrar('ovh', 'OVH');
var OVH = NewDnsProvider('ovh', 'OVH');
// Common configurations
var WEBSERVER_IPV4 = '51.77.136.165';
var MAILSERVER_CONFIG = [
MX('@', 1, 'mx1.mail.ovh.net.'),
MX('@', 5, 'mx2.mail.ovh.net.'),
MX('@', 100, 'mx3.mail.ovh.net.'),
SPF_BUILDER({
label: '@',
parts: [
'v=spf1',
'include:mx.ovh.com',
'~all'
]
})
];
// Defaults
DEFAULTS(DefaultTTL('1h'), NAMESERVER_TTL('1h'));
// Domains
D('arbre.app', REG_OVH, DnsProvider(OVH),
// Web
A('@', WEBSERVER_IPV4), // Main site
CNAME('www', '@'),
A('insee', WEBSERVER_IPV4), // API
A('mon', WEBSERVER_IPV4), // SPA
A('docs', WEBSERVER_IPV4), // Generated files
// E-mails
MAILSERVER_CONFIG,
// Domain verification
TXT('@', 'google-site-verification=puDIPKS7zzfTDbPwv3lMxp8b-LtmTa401GLLE8EdvEU'), // Google
TXT('_github-challenge-arbre-app', 'cdda641101') // GitHub
);