{"id":29227109,"url":"https://github.com/shuque/parse_zone","last_synced_at":"2025-07-03T09:09:58.950Z","repository":{"id":300498080,"uuid":"1005277511","full_name":"shuque/parse_zone","owner":"shuque","description":"Parse master DNS zone format file and process it","archived":false,"fork":false,"pushed_at":"2025-06-22T02:13:59.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T03:24:03.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-20T01:21:03.000Z","updated_at":"2025-06-22T02:14:02.000Z","dependencies_parsed_at":"2025-06-22T03:24:08.012Z","dependency_job_id":null,"html_url":"https://github.com/shuque/parse_zone","commit_stats":null,"previous_names":["shuque/parse_zone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shuque/parse_zone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuque%2Fparse_zone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuque%2Fparse_zone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuque%2Fparse_zone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuque%2Fparse_zone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuque","download_url":"https://codeload.github.com/shuque/parse_zone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuque%2Fparse_zone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263296638,"owners_count":23444499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-03T09:09:58.479Z","updated_at":"2025-07-03T09:09:58.941Z","avatar_url":"https://github.com/shuque.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS Zone File Parser\n\nA Python script that parses and process a DNS master zone format file.\n\nNote: this program was written by a series of (about 20) prompts to Cursor (an AI assisted code editor).\n\n## Usage\n\n### Basic Usage\n\n```\n$ ./parse_zone.py -h\nusage: parse_zone.py [-h] [--printrecords] [--stats] [--no-dnssec]\n                     [--rrtypes TYPES] [--includename NAME]\n                     [--includedata DATA] [--excludename NAME]\n                     [--excludedata DATA] [--wildcard] [--delegations]\n                     [--ttl-min TTL] [--ttl-max TTL] [--class CLASS]\n                     [zonefile]\n\nParse and display DNS zone file information\n\npositional arguments:\n  zonefile            Path to DNS zone file (read stdin if not provided)\n\noptions:\n  -h, --help          show this help message and exit\n  --printrecords      Print the (relevant) DNS records in the zone\n  --stats             Print DNS record type statistics\n  --no-dnssec         Exclude DNSSEC-related records\n  --rrtypes TYPES     Comma-separated list of record types to include (e.g.,\n                      A,AAAA,MX)\n  --includename NAME  Include records with names containing string (case\n                      insensitive)\n  --includedata DATA  Include records with data containing string (case\n                      insensitive)\n  --excludename NAME  Exclude records with names containing string (case\n                      insensitive)\n  --excludedata DATA  Exclude records with data containing string (case\n                      insensitive)\n  --wildcard          Only process wildcard DNS records (names starting with\n                      *.\n  --delegations       Only process delegation records (NS records not for zone\n                      origin)\n  --ttl-min TTL       Minimum TTL value (inclusive) for filtering records\n  --ttl-max TTL       Maximum TTL value (inclusive) for filtering records\n  --class CLASS       Filter records by class (e.g., IN, CH, HS)\n```\n\n### Examples\n\n```bash\n# Parse a zone file silently (default behavior)\npython3 parse_zone.py example.zone\n\n# Print DNS records in formatted table\npython3 parse_zone.py example.zone --printrecords\n\n# Print record type statistics\npython3 parse_zone.py example.zone --stats\n\n# Print records with statistics\npython3 parse_zone.py example.zone --printrecords --stats\n\n# Only count records\npython3 parse_zone.py example.zone --count-only\n\n# Get help\npython3 parse_zone.py --help\n```\n\n## Example Zone File\n\nSee `example.zone` for a sample DNS zone file that demonstrates various record types and formats.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuque%2Fparse_zone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuque%2Fparse_zone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuque%2Fparse_zone/lists"}