mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
AZURE_DNS: Add support for Alias: AZURE_ALIAS() (#675)
* Add support for Alias in Azure * Actioned comments and added parse tests * GetTargetDebug * Go formatting
This commit is contained in:
5
pkg/js/parse_tests/026-azure-alias.js
Normal file
5
pkg/js/parse_tests/026-azure-alias.js
Normal file
@@ -0,0 +1,5 @@
|
||||
D("foo.com", "none",
|
||||
AZURE_ALIAS("atest", "A", "foo.com."),
|
||||
AZURE_ALIAS("aaaatest", "AAAA", "foo.com."),
|
||||
AZURE_ALIAS("cnametest", "CNAME", "foo.com.")
|
||||
);
|
||||
37
pkg/js/parse_tests/026-azure-alias.json
Normal file
37
pkg/js/parse_tests/026-azure-alias.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "AZURE_ALIAS",
|
||||
"name": "atest",
|
||||
"target": "foo.com.",
|
||||
"azure_alias": {
|
||||
"type": "A"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AZURE_ALIAS",
|
||||
"name": "aaaatest",
|
||||
"target": "foo.com.",
|
||||
"azure_alias": {
|
||||
"type": "AAAA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AZURE_ALIAS",
|
||||
"name": "cnametest",
|
||||
"target": "foo.com.",
|
||||
"azure_alias": {
|
||||
"type": "CNAME"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user