mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 02:17:43 +08:00
4ef9e8bc40
* models/record.go: SRV targets are case insensitive. Downcase them. * models/t_srv.go: Rename setTargetIntAndStrings() to setTargetSRVIntAndStrings() (makes it easier to search for /setTargetSRV/). * pkg/js/parse_tests/021-srv.js*: SRV: Add parse_tests * pkg/normalize/validate.go: SRV targets are hostnames, turn into FQDNs. * Add #rtype_variations warnings for future developers
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"dns_providers": [],
|
|
"domains": [
|
|
{
|
|
"dnsProviders": {},
|
|
"name": "foo.com",
|
|
"records": [
|
|
{
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 1,
|
|
"srvweight": 100,
|
|
"target": "one.foo.com.",
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 2,
|
|
"srvweight": 100,
|
|
"target": "two",
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 3,
|
|
"srvweight": 100,
|
|
"target": "localhost",
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"name": "_ntp._udp",
|
|
"srvport": 123,
|
|
"srvpriority": 4,
|
|
"srvweight": 100,
|
|
"target": "three.example.com.",
|
|
"type": "SRV"
|
|
},
|
|
{
|
|
"name": "_ntp._udp",
|
|
"srvport": 1,
|
|
"target": "zeros",
|
|
"type": "SRV"
|
|
}
|
|
],
|
|
"registrar": "none"
|
|
}
|
|
],
|
|
"registrars": []
|
|
}
|