mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Direct SOA record management (#1115)
* Adds SOA record to JS, zone parsing and record validation * adds JS parsing test for SOA record * fix validation & regenerates static resources * Adds label and target test for SOA record * Removes serial from SOA JS macro * Adds generated resources * reformat with gofmt Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
3
pkg/js/parse_tests/038-soa.js
Normal file
3
pkg/js/parse_tests/038-soa.js
Normal file
@@ -0,0 +1,3 @@
|
||||
D("foo.com","none",
|
||||
SOA('@', 'ns1.foo.com.', 'admin.foo.com', 3600, 900, 604800, 86400)
|
||||
);
|
||||
23
pkg/js/parse_tests/038-soa.json
Normal file
23
pkg/js/parse_tests/038-soa.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "SOA",
|
||||
"name": "@",
|
||||
"target": "ns1.foo.com.",
|
||||
"soambox": "admin.foo.com",
|
||||
"soarefresh": 3600,
|
||||
"soaexpire": 604800,
|
||||
"soaretry": 900,
|
||||
"soaminttl": 86400
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
2
pkg/js/parse_tests/038-soa/foo.com.zone
Normal file
2
pkg/js/parse_tests/038-soa/foo.com.zone
Normal file
@@ -0,0 +1,2 @@
|
||||
$TTL 300
|
||||
@ IN SOA ns1.foo.com. admin.foo.com 0 3600 900 604800 86400
|
||||
Reference in New Issue
Block a user