{"id":30306435,"url":"https://github.com/branchingbad/get-hostentry","last_synced_at":"2025-08-17T09:34:59.016Z","repository":{"id":144899293,"uuid":"104568233","full_name":"BranchingBad/Get-HostEntry","owner":"BranchingBad","description":"Get-HostEntry is a simple PowerShell script designed to retrieve and display DNS host entries (IP addresses) for a given hostname. This script is useful for quickly resolving hostnames to their associated IP addresses on local or remote systems.","archived":false,"fork":false,"pushed_at":"2024-10-24T23:29:28.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T19:14:51.909Z","etag":null,"topics":["dns","powershell","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BranchingBad.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}},"created_at":"2017-09-23T13:07:56.000Z","updated_at":"2024-10-24T23:29:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad7343ac-a66f-44d3-bc63-697d8d3637a3","html_url":"https://github.com/BranchingBad/Get-HostEntry","commit_stats":null,"previous_names":["stean202020/get-hostentry","padkaprow/get-hostentry","thecommitstrip/get-hostentry","gitgonewild/get-hostentry","branchingbad/get-hostentry"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BranchingBad/Get-HostEntry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BranchingBad%2FGet-HostEntry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BranchingBad%2FGet-HostEntry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BranchingBad%2FGet-HostEntry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BranchingBad%2FGet-HostEntry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BranchingBad","download_url":"https://codeload.github.com/BranchingBad/Get-HostEntry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BranchingBad%2FGet-HostEntry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270831654,"owners_count":24653397,"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-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["dns","powershell","powershell-script"],"created_at":"2025-08-17T09:34:56.700Z","updated_at":"2025-08-17T09:34:59.007Z","avatar_url":"https://github.com/BranchingBad.png","language":"PowerShell","readme":"# Get-HostEntry\n\n`Get-HostEntry` is a simple PowerShell script designed to retrieve and display DNS host entries (IP addresses) for a given hostname. This script is useful for quickly resolving hostnames to their associated IP addresses on local or remote systems.\n\n## Features\n\n- **Hostname Resolution:** Resolve a given hostname to its corresponding IP addresses (both IPv4 and IPv6).\n- **Simple and Lightweight:** A minimal PowerShell script that can be run on any system with PowerShell installed.\n- **Error Handling:** Includes basic error handling to catch and display invalid hostnames or DNS resolution failures.\n\n## Requirements\n\n- PowerShell (available by default on Windows and installable on macOS and Linux).\n- Internet or local network connection for resolving DNS entries.\n\n## Installation\n\n1. Clone the repository to your local machine:\n   ```bash\n   git clone https://github.com/OddRefrigerator/Get-HostEntry.git\n   ```\n\n2. Optionally, copy the `Get-HostEntry.ps1` script to a location in your system's `$PATH` for easy access, or run it directly from the cloned directory.\n\n## Usage\n\nTo use the `Get-HostEntry` script:\n\n1. Open a PowerShell terminal.\n\n2. Navigate to the directory where the script is located, or ensure it's in your `$PATH`.\n\n3. Run the script with the hostname you want to resolve as an argument:\n\n   ```powershell\n   ./Get-HostEntry.ps1 -Hostname example.com\n   ```\n\n   Example output:\n\n   ```\n   Hostname: example.com\n   IPv4 Address: 93.184.216.34\n   IPv6 Address: 2606:2800:220:1:248:1893:25c8:1946\n   ```\n\n### Parameters\n\n- `-Hostname`: The hostname you wish to resolve. This parameter is required.\n\n### Example\n\n```powershell\n./Get-HostEntry.ps1 -Hostname google.com\n```\n\nThis will return the IPv4 and IPv6 addresses for `google.com`.\n\n## Error Handling\n\nIf the hostname cannot be resolved, the script will display an error message indicating that the DNS resolution failed:\n\n```powershell\nError: Could not resolve hostname example.invalid\n```\n\n## Customization\n\nYou can modify the script to suit your specific needs, such as adding additional logging, output formats, or resolving multiple hostnames in bulk. The script is written in PowerShell, so it can easily be adapted to fit more complex use cases.\n\n## Contributing\n\nContributions are welcome! If you have any improvements or fixes, feel free to fork the repository and submit a pull request.\n\n### Steps for Contribution\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix:\n   ```bash\n   git checkout -b feature-name\n   ```\n3. Commit your changes:\n   ```bash\n   git commit -m \"Description of your feature or fix\"\n   ```\n4. Push your branch:\n   ```bash\n   git push origin feature-name\n   ```\n5. Open a pull request with a detailed explanation of your changes.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any inquiries or issues, feel free to open an issue on GitHub or contact the repository owner.\n\n---\n\nSimplify your DNS lookups with `Get-HostEntry`!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranchingbad%2Fget-hostentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbranchingbad%2Fget-hostentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranchingbad%2Fget-hostentry/lists"}