DOC: Split the Google Workspace example (#1796)

This commit is contained in:
Jeffrey Cafferata 2022-10-31 11:50:41 +01:00 committed by GitHub
parent c6011fe3f8
commit fc678d8820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,12 +76,15 @@ D('example.com', REG, DnsProvider('R53'),
## Macro to for repeated records
```js
var GOOGLE_APPS_RECORDS = [
var GOOGLE_APPS_MX_RECORDS = [
MX('@', 1, 'aspmx.l.google.com.'),
MX('@', 5, 'alt1.aspmx.l.google.com.'),
MX('@', 5, 'alt2.aspmx.l.google.com.'),
MX('@', 10, 'alt3.aspmx.l.google.com.'),
MX('@', 10, 'alt4.aspmx.l.google.com.'),
]
var GOOGLE_APPS_CNAME_RECORDS = [
CNAME('calendar', 'ghs.googlehosted.com.'),
CNAME('drive', 'ghs.googlehosted.com.'),
CNAME('mail', 'ghs.googlehosted.com.'),
@ -91,7 +94,8 @@ var GOOGLE_APPS_RECORDS = [
]
D('example.com', REG, DnsProvider('R53'),
GOOGLE_APPS_RECORDS,
GOOGLE_APPS_MX_RECORDS,
GOOGLE_APPS_CNAME_RECORDS,
A('@', '1.2.3.4')
)
```