mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
NEW FEATURE: Add RFC4183 support to REV() (#2879)
Co-authored-by: Thomas Misilo <tmisilo@ksu.edu> Co-authored-by: Jeffrey Cafferata <jeffrey@jcid.nl>
This commit is contained in:
@ -73,6 +73,10 @@ func TestReverse(t *testing.T) {
|
||||
{"174.1.0.0/31", false, "0/31.0.1.174.in-addr.arpa"},
|
||||
{"174.1.0.2/31", false, "2/31.0.1.174.in-addr.arpa"},
|
||||
|
||||
// Use RFC4183 for cases not covered by RFC2317:
|
||||
{"10.20.128.0/23", false, "128-23.20.10.in-addr.arpa"},
|
||||
{"10.192.0.0/13", false, "192-13.10.in-addr.arpa"},
|
||||
|
||||
// Error Cases:
|
||||
{"0.0.0.0/0", true, ""},
|
||||
{"2001::/0", true, ""},
|
||||
|
Reference in New Issue
Block a user