2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-31 06:15:49 +00:00
This commit is contained in:
Jay07GIT
2022-05-19 13:18:18 +05:30
parent 502746d86b
commit c13f91333f

View File

@@ -109,7 +109,7 @@ object ReverseZoneHelpers {
string.split('.').filter(!_.isEmpty).reverse.toList
private def getZoneAsCIDRString(zone: Zone): Either[Throwable, String] = {
val zoneName = Pattern.compile("in-addr.arpa.", Pattern.CASE_INSENSITIVE).split(zone.name)(0)
val zoneName = zone.name.dropRight("in-addr.arpa.".length)
val zoneOctets = ipv4ReverseSplitByOctets(zoneName)
val zoneString = zoneOctets.mkString(".")