abs ptr
This commit is contained in:
parent
2ebfed3378
commit
329ed64cc4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user