prepend zone_name with . to ensure it matches on address boundary

This commit is contained in:
Jeff Engleman
2023-02-24 16:12:36 -05:00
parent 7dcf336217
commit 5d9c8d878a
+1 -1
View File
@@ -48,7 +48,7 @@ class AutoArpa(BaseProcessor):
zone_name = zone.name
n = len(zone_name) + 1
for arpa, fqdns in self._records.items():
if arpa.endswith(zone_name):
if arpa.endswith(f'.{zone_name}'):
name = arpa[:-n]
fqdns = sorted(fqdns)
record = Record.new(