Skip to content

Conversation

@Rameen-Mahmood
Copy link
Member

  • 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.

Resolves #2

@Rameen-Mahmood Rameen-Mahmood added the enhancement New feature or request label Nov 15, 2024
@Rameen-Mahmood Rameen-Mahmood self-assigned this Apr 18, 2025
@Rameen-Mahmood Rameen-Mahmood requested a review from Copilot May 4, 2025 16:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements persistent IP-to-hostname mapping by replacing an in-memory dictionary with a persistent shelve database and adding reverse DNS lookup as a fallback for hostname resolution.

  • Replaces the transient storage with a shelve database.
  • Introduces a reverse DNS lookup mechanism.
  • Adds CI and Dependabot configurations to support ongoing development.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
parse.py Migrated IP-hostname mapping to a persistent database and integrated reverse DNS lookup.
.github/workflows/ci-parse.yml Added a CI workflow to run the parse script on sample data.
.github/dependabot.yaml Configured automatic dependency updates for pip and GitHub Actions.

@Rameen-Mahmood Rameen-Mahmood merged commit 5a4a98e into main May 4, 2025
1 check passed
@Rameen-Mahmood Rameen-Mahmood deleted the ip-hostname-mapping branch May 4, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

label more IPs with hostnames

2 participants