fix computation of reverse zone based on Ipv6 CIDRs (#1415)
This commit is contained in:
parent
9575789c36
commit
f9c03c2ead
4 changed files with 37 additions and 6 deletions
|
@ -13,6 +13,7 @@ func TestKubernetesParseReverseZone(t *testing.T) {
|
|||
}{
|
||||
{`kubernetes coredns.local 10.0.0.0/16`, []string{"coredns.local.", "0.10.in-addr.arpa."}},
|
||||
{`kubernetes coredns.local 10.0.0.0/17`, []string{"coredns.local.", "0.10.in-addr.arpa."}},
|
||||
{`kubernetes coredns.local fd00:77:30::0/110`, []string{"coredns.local.", "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.0.0.7.7.0.0.0.0.d.f.ip6.arpa."}},
|
||||
}
|
||||
|
||||
for i, tc := range tests {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue