{"id":23498058,"url":"https://github.com/freedomben/digall","last_synced_at":"2025-07-23T19:33:04.951Z","repository":{"id":69604926,"uuid":"489737536","full_name":"FreedomBen/digall","owner":"FreedomBen","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-03T01:31:57.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T15:47:50.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/FreedomBen.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":"2022-05-07T17:19:42.000Z","updated_at":"2023-08-31T19:40:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"7236c818-ec92-4506-853d-3025d8d26d51","html_url":"https://github.com/FreedomBen/digall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FreedomBen/digall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdigall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdigall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdigall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdigall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreedomBen","download_url":"https://codeload.github.com/FreedomBen/digall/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdigall/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266738301,"owners_count":23976415,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-12-25T05:18:11.073Z","updated_at":"2025-07-23T19:33:04.943Z","avatar_url":"https://github.com/FreedomBen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# digall\n\nYou have a few different options for how you can run it.  The \"script\" version\n(Option 1) is a little more complete.  It has a help message (`-h|--help`) and\nsupports a `-s|--show` argument that will print out the dig command that it's\nusing, which is useful for learning.\n\n## Option 1:  Install as a script\n\nYou can download it as a script file with `wget` by running this command:\n\n```bash\nwget https://raw.githubusercontent.com/FreedomBen/digall/main/digall \\\n  \u0026\u0026 chmod +x digall\n```\n\nNow use it with whatever domains you like:\n\n```bash\n./digall example.com\n./digall something.example.com\n```\n\nIf you add it to [somewhere in your `$PATH` variable](https://opensource.com/article/17/6/set-path-linux) then you can invoke it without the `./` prefix:\n\n```bash\n# Install in /usr/local/bin\nsudo curl -L https://raw.githubusercontent.com/FreedomBen/digall/main/digall -o \"/usr/local/bin/digall\"\nsudo chmod +x /usr/local/bin/digall\n\n# assumes that /usr/local/bin is in the $PATH\ndigall example.com\n```\n\n## Option 2:  As a bash function temporarily\n\nYou can use `digall` as a \"bash function\" that is loaded in the current shell.  To make available in your current shell, copy and paste this:\n\n```bash\ndigall()\n{\n  local color_restore='\\033[0m'\n  local color_red='\\033[0;31m'\n  local color_light_green='\\033[1;32m'\n  local color_light_blue='\\033[1;34m'\n  local color_light_cyan='\\033[1;36m'\n\n  if [ -z \"$1\" ]; then\n    echo -e \"${color_red}Error: Please pass domain as first arg${color_restore}\"\n  else\n    echo -e \"${color_light_blue}Queries: (dig +noall +answer '$1' '\u003ctype\u003e')...${color_light_cyan}\\n\"\n    # CNAME isn't needed because it will show up as the other record types\n    for t in SOA NS SPF TXT MX AAAA A; do\n      echo -e \"${color_light_green}Querying for $t records...${color_restore}${color_light_cyan}\"\n      dig +noall +answer \"$1\" \"${t}\"\n      echo -e \"${color_restore}\"\n    done\n  fi\n}\n```\n\nNow you can use it with any domain or subdomain.  Examples:\n\n```\ndigall example.com\ndigall something.example.com\n```\n\n## Option 3:  As a bash function that is persistent (available in every shell)\n\nCopy and paste the same snippet above that starts with `digall()` and paste it into your bashrc file, usually located at `~/.bashrc`.\n\nNew shells that you spawn will have the function available automatically.  Existing shells can be loaded with it by:\n\n```bash\n. ~/.bashrc\n```\n\nNow you can use it with any domain or subdomain.  Examples:\n\n```\ndigall example.com\ndigall something.example.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedomben%2Fdigall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreedomben%2Fdigall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedomben%2Fdigall/lists"}