1
This commit is contained in:
Evan Pratten 2023-10-13 13:53:50 -04:00
parent 2ebfed3378
commit 329ed64cc4

View File

@ -131,10 +131,10 @@ def main() -> int:
for address in addresses:
if isinstance(address, ipaddress.IPv4Address):
print(f"{host}. IN A {address}")
print(f"{address.reverse_pointer}. IN PTR {host}")
print(f"{address.reverse_pointer}. IN PTR {host}.")
elif isinstance(address, ipaddress.IPv6Address):
print(f"{host}. IN AAAA {address}")
print(f"{address.reverse_pointer}. IN PTR {host}")
print(f"{address.reverse_pointer}. IN PTR {host}.")
return 0