{"id":15724711,"url":"https://github.com/davenchy/domain_to_ipv4_c","last_synced_at":"2025-10-14T19:31:02.767Z","repository":{"id":233529839,"uuid":"787395174","full_name":"Davenchy/domain_to_ipv4_c","owner":"Davenchy","description":"A simple command-line tool written in C to convert domain names to their corresponding IPv4 addresses","archived":true,"fork":false,"pushed_at":"2024-04-16T12:54:10.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T16:54:34.721Z","etag":null,"topics":["c","clang","dns","dns-resolution","domain-to-ip","domain-to-ip-convert","freeaddrinfo","getaddrinfo","inet","ip","ipaddress","ipv4","linux","networking"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Davenchy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-16T12:49:51.000Z","updated_at":"2024-08-05T02:55:57.000Z","dependencies_parsed_at":"2024-04-16T15:35:50.738Z","dependency_job_id":null,"html_url":"https://github.com/Davenchy/domain_to_ipv4_c","commit_stats":null,"previous_names":["davenchy/domain_to_ipv4_c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Davenchy/domain_to_ipv4_c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davenchy%2Fdomain_to_ipv4_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davenchy%2Fdomain_to_ipv4_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davenchy%2Fdomain_to_ipv4_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davenchy%2Fdomain_to_ipv4_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Davenchy","download_url":"https://codeload.github.com/Davenchy/domain_to_ipv4_c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davenchy%2Fdomain_to_ipv4_c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020650,"owners_count":26086898,"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-10-14T02:00:06.444Z","response_time":60,"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":["c","clang","dns","dns-resolution","domain-to-ip","domain-to-ip-convert","freeaddrinfo","getaddrinfo","inet","ip","ipaddress","ipv4","linux","networking"],"created_at":"2024-10-03T22:17:43.219Z","updated_at":"2025-10-14T19:31:02.510Z","avatar_url":"https://github.com/Davenchy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Domain to IPv4 Converter in C\n\nThis project provides a simple command-line tool written in C to convert domain names to their corresponding IPv4 addresses. It uses the getaddrinfo function from the netdb.h library to perform DNS resolution and retrieve IP addresses associated with a given domain name.\n\n## Usage\n\nSimply compile the provided source code and run the executable with the domain name as an argument.\n\n```bash\n$ gcc domain_to_ipv4.c -o domain_to_ipv4\n```\n\n```bash\n$ ./domain_to_ipv4\nUsage: ./domain_to_ipv4 \u003cdomain\u003e\n```\n\n```bash\n$ ./domain_to_ipv4 example.com\n93.184.216.34\n```\n\n## Resources\n\n- [getaddrinfo(3), freeaddrinfo(3)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html)\n\n- [gai_strerror(3)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/gai_strerror.html)\n\n- [inet_ntop(3)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/inet_ntop.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavenchy%2Fdomain_to_ipv4_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavenchy%2Fdomain_to_ipv4_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavenchy%2Fdomain_to_ipv4_c/lists"}