Replaced the transient, in-memory ip_hostname_dict with a persistent database using Python’s shelve module; stores IP-hostname mappings across script executions, allowing them to be retained and reused in future runs.
Implemented reverse DNS lookup as a fallback mechanism to resolve hostnames for IP addresses not recorded in the shelve database.
ip_hostname_dict
with a persistent database using Python’sshelve
module; stores IP-hostname mappings across script executions, allowing them to be retained and reused in future runs.shelve
database.Resolves #2