mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-10 17:38:13 +08:00
Better validate NAMESERVER format. (#350)
* remove misleading ip field we don't touch
This commit is contained in:
parent
139f4fe1ed
commit
2a7b382767
5 changed files with 92 additions and 101 deletions
|
@ -42,8 +42,7 @@ type DNSProviderConfig struct {
|
|||
|
||||
// Nameserver describes a nameserver.
|
||||
type Nameserver struct {
|
||||
Name string `json:"name"` // Normalized to a FQDN with NO trailing "."
|
||||
Target string `json:"target"`
|
||||
Name string `json:"name"` // Normalized to a FQDN with NO trailing "."
|
||||
}
|
||||
|
||||
// StringsToNameservers constructs a list of *Nameserver structs using a list of FQDNs.
|
||||
|
|
|
@ -294,24 +294,16 @@ var MX = recordBuilder('MX', {
|
|||
},
|
||||
});
|
||||
|
||||
function checkArgs(checks, args, desc) {
|
||||
if (args.length < checks.length) {
|
||||
throw desc;
|
||||
}
|
||||
for (var i = 0; i < checks.length; i++) {
|
||||
if (!checks[i](args[i])) {
|
||||
throw desc + ' - argument ' + i + ' is not correct type';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// NS(name,target, recordModifiers...)
|
||||
var NS = recordBuilder('NS');
|
||||
|
||||
// NAMESERVER(name,target)
|
||||
function NAMESERVER(name, target) {
|
||||
function NAMESERVER(name) {
|
||||
if (arguments.length != 1){
|
||||
throw("NAMESERVER only accepts one argument for name.")
|
||||
}
|
||||
return function(d) {
|
||||
d.nameservers.push({ name: name, target: target });
|
||||
d.nameservers.push({ name: name });
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ func TestErrors(t *testing.T) {
|
|||
{"CF_TEMP_REDIRECT With comma", `D("foo.com","reg",CF_TEMP_REDIRECT("foo.com","baa,a"))`},
|
||||
{"Bad cidr", `D(reverse("foo.com"), "reg")`},
|
||||
{"Dup domains", `D("example.org", "reg"); D("example.org", "reg")`},
|
||||
{"Bad NAMESERVER", `D("example.com","reg", NAMESERVER("@","ns1.foo.com."))`},
|
||||
}
|
||||
for _, tst := range tests {
|
||||
t.Run(tst.desc, func(t *testing.T) {
|
||||
|
|
169
pkg/js/static.go
169
pkg/js/static.go
|
@ -192,93 +192,92 @@ var _escData = map[string]*_escFile{
|
|||
|
||||
"/helpers.js": {
|
||||
local: "pkg/js/helpers.js",
|
||||
size: 18525,
|
||||
size: 18327,
|
||||
modtime: 0,
|
||||
compressed: `
|
||||
H4sIAAAAAAAC/+w8a3PjNpLf/Ss6U7ehOObQj4knW3KUi+JHzhW/StZkZ0+nU8EkJGFMkTwAlMZJPL/9
|
||||
Ci8S4EN2Ukn2y+bDWAQaje5Go7vRaMQrGAbGKYm4d7yzs0YUoiydwwB+2QEAoHhBGKeIsj5MpoFsi1M2
|
||||
y2m2JjF2mrMVImmjYZaiFdatT3qKGM9RkfAhXTAYwGR6vLMzL9KIkywFkhJOUEJ+xj1fE+FQ1EXVFspa
|
||||
qXs6VkQ2SHmyiLnGm5GZqycYCYA/5jiAFebIkEfm0BOtvkWh+IbBALyr4fX74aWnJnuS/woJULwQHIHA
|
||||
2YcKc9/C35f/GkKFEMKK8TAv2LJH8cI/1gvFC5pKTA0WTlN2q6XyLBPZXM06EMRn9x9xxD348kvwSD6L
|
||||
snSNKSNZyjwgqTNe/Ce+QxcOBjDP6ArxGee9ln6/LpiY5b9HMM7KK9nELH9ONinenEq90GIpxeuX6i9H
|
||||
VixaZDW1sV/9DByh9OGXJxs+ymjcVN3bSnNtcK2h4/FlH/YDhxKG6bqh6WSRZhTHswTd48RVeJv3nGYR
|
||||
ZuwU0QXrrQK9QQzje3ti3QCjaAmrLCZzgmkglIRwIAxQGIYlnMbYhwgliQDYEL7U+AwQohQ99s2kQgQF
|
||||
ZWSNk0cDoXRNLC1dYDlNyjMpvRhxVOroLCTsXM/YW/mO+vU0D1qnACcMl4OGgoLaCMFiT2jdR6nOdpf4
|
||||
zxXR5OO0lNJxCffUNteN5KU22SzEnzhOY01lKFgLYOVSa1mQJc024P1jOLq+uP6hr2cuF0NZmCJlRZ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lIMeICDgGn
|
||||
WGUYGrGImdEI1k24ls2uojcGMrRqDmNoJQeNGVrxfFoO1ZZZJ2hV5c0cl5JzJK9ttz4U5zrVa6GlY3Xu
|
||||
baQeYOXY1LlOOtHh+2F1myanUyTYlI8RpakeCMIScaVFvtrYSPNyaleT0Jk8EEohYy5wEsEMU8z0o/Zq
|
||||
duegilY1pFaEmiSDVx6kvIYqBbjvvT4vB/Rq8C2lH0zH/sP3w065MpGRSVVd4TBpA3zJIs/xRFrAJDJx
|
||||
jt5Bkok6D3aYT6gCL8m0MPVZf9guPn/JzaLW2VJ6ahmLIA9rdwrMBq33iiQEZz9eXtvi0/J/p/j28Pgr
|
||||
eFwL7P1XAz9eXncQK99WTeYF/XhPfpb2//D4uHrkO9hY0RVBqpYLMeblClNM5Y/dXoW0yv4PbG6QxTwl
|
||||
E9whkYR1QP3j3ECy+P8BAAD//1ihD1KXRwAA
|
||||
`,
|
||||
},
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ func AddNSRecords(dc *models.DomainConfig) {
|
|||
rc.SetLabel("@", dc.Name)
|
||||
t := ns.Name
|
||||
if !strings.HasSuffix(t, ".") {
|
||||
rc.SetTarget(t + ".")
|
||||
t += "."
|
||||
}
|
||||
rc.SetTarget(t)
|
||||
|
||||
|
|
Loading…
Reference in a new issue