mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Attempt to add NAPTR support.
This commit is contained in:
4
pkg/js/parse_tests/023-naptr.js
Normal file
4
pkg/js/parse_tests/023-naptr.js
Normal file
@@ -0,0 +1,4 @@
|
||||
D("foo.com","none",
|
||||
NAPTR("foo.com",100,10,"U","E2U+sip","!^.*$!sip:customer-service@example.com!","example"),
|
||||
NAPTR("foo.com",102,10,"U","E2U+email","!^.*$!mailto:information@example.com!","example")
|
||||
);
|
||||
31
pkg/js/parse_tests/023-naptr.json
Normal file
31
pkg/js/parse_tests/023-naptr.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "NAPTR",
|
||||
"order": 100,
|
||||
"preference": 10,
|
||||
"flags": "U",
|
||||
"service": "E2U+sip",
|
||||
"regexp": "!^.*$!sip:customer-service@example.com!",
|
||||
"target": "example"
|
||||
},
|
||||
{
|
||||
"type": "NAPTR",
|
||||
"order": 102,
|
||||
"preference": 10,
|
||||
"flags": "U",
|
||||
"service": "E2U+email",
|
||||
"regexp": "!^.*$!mailto:information@example.com!",
|
||||
"target": "example"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user