Validate IPv4 on nameserver when in the same zone with domain

This commit is contained in:
Martin Lensment 2014-10-01 11:22:30 +03:00
parent 4f780e0c1a
commit b85420a598
4 changed files with 28 additions and 0 deletions

View file

@ -17,6 +17,9 @@ class Nameserver < ActiveRecord::Base
[:hostname, :invalid, { value: { obj: 'hostObj', val: hostname } }],
[:ipv4, :invalid, { value: { obj: 'hostAddr', val: ipv4 } }],
[:ipv6, :invalid, { value: { obj: 'hostAddr', val: ipv6 } }]
],
'2306' => [
[:ipv4, :blank]
]
}
end