mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
PTR should handle "Classless in-addr.arpa delegation" RFC2317 (#149)
* Handle IPv4 "Classless in-addr.arpa delegation" RFC2317 (partial). * Validate PTR name when in RFC2317 "Classless in-addr.arpa delegation" domains. * Update docs * Set CanUsePTR for Route53 and Google CloudDNS. * BIND: Replace "/" with "_" in filenames.
This commit is contained in:
@@ -41,6 +41,13 @@ func TestPtrMagic(t *testing.T) {
|
||||
{"1.0.0.0.0.0.0.0.0.0.0.0.0", "0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa", "1.0.0.0.0.0.0.0.0.0.0.0.0", false},
|
||||
{"1.0.0.0.0.0.0.0.0.0.0.0.0.0", "0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa", "1.0.0.0.0.0.0.0.0.0.0.0.0.0", false},
|
||||
|
||||
// RFC2317 (Classless)
|
||||
// 172.20.18.160/27 is .160 - .191:
|
||||
{"172.20.18.159", "160/27.18.20.172.in-addr.arpa", "", true},
|
||||
{"172.20.18.160", "160/27.18.20.172.in-addr.arpa", "160", false},
|
||||
{"172.20.18.191", "160/27.18.20.172.in-addr.arpa", "191", false},
|
||||
{"172.20.18.192", "160/27.18.20.172.in-addr.arpa", "", true},
|
||||
|
||||
// If it doesn't end in .arpa, the magic is disabled:
|
||||
{"1.2.3.4", "example.com", "1.2.3.4", false},
|
||||
{"1", "example.com", "1", false},
|
||||
|
Reference in New Issue
Block a user