https://github.com/elliotwutingfeng/get_ips
Get IPv4 and IPv6 addresses of hostnames using socket.getaddrinfo().
https://github.com/elliotwutingfeng/get_ips
dns domain fqdn fqdn-resolve-to-ip hostname http icann ip-address ipv4 ipv6 osi osint socket tcp-ip url
Last synced: 8 months ago
JSON representation
Get IPv4 and IPv6 addresses of hostnames using socket.getaddrinfo().
- Host: GitHub
- URL: https://github.com/elliotwutingfeng/get_ips
- Owner: elliotwutingfeng
- License: bsd-3-clause
- Created: 2023-01-31T04:36:44.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-05T11:03:41.000Z (about 1 year ago)
- Last Synced: 2025-03-31T04:01:57.453Z (11 months ago)
- Topics: dns, domain, fqdn, fqdn-resolve-to-ip, hostname, http, icann, ip-address, ipv4, ipv6, osi, osint, socket, tcp-ip, url
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# get_ips

[](https://coveralls.io/github/elliotwutingfeng/get_ips?branch=main)
[](LICENSE)
Get IPv4 and IPv6 addresses of hostnames using [socket.getaddrinfo()](https://docs.python.org/3/library/socket.html#socket.getaddrinfo).
## Requirements
Python 3.8+
## Setup
```shell
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements.txt
```
## Testing
```shell
venv/bin/python3 -m pytest --cov --cov-report html
```
## Usage
```shell
venv/bin/python3 main.py --input-file sample_urls.txt --output-file output.txt
```