{"id":21192234,"url":"https://github.com/bujosa/dns-resolver","last_synced_at":"2026-04-12T22:12:32.403Z","repository":{"id":214211300,"uuid":"721454372","full_name":"bujosa/dns-resolver","owner":"bujosa","description":"This is a simple project in rust for creating a Dns Resolver","archived":false,"fork":false,"pushed_at":"2023-11-26T22:27:17.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T10:53:20.266Z","etag":null,"topics":["dns","dns-resolver","docker","rust","warp"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/bujosa.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}},"created_at":"2023-11-21T05:03:45.000Z","updated_at":"2023-12-26T15:07:42.000Z","dependencies_parsed_at":"2023-12-26T17:47:26.604Z","dependency_job_id":"57e86e07-60b4-4058-a12a-e6dddd2f96a5","html_url":"https://github.com/bujosa/dns-resolver","commit_stats":null,"previous_names":["bujosa/dns-resolver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fdns-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fdns-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fdns-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2Fdns-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bujosa","download_url":"https://codeload.github.com/bujosa/dns-resolver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646667,"owners_count":20324586,"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":["dns","dns-resolver","docker","rust","warp"],"created_at":"2024-11-20T19:08:03.850Z","updated_at":"2025-10-18T07:26:48.182Z","avatar_url":"https://github.com/bujosa.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS Resolver\n\nThis project is a simple DNS resolver written in Rust. It uses the `trust-dns-resolver` crate to perform DNS lookups asynchronously.\n\n## Features\n\n- Asynchronous DNS resolution using the Tokio runtime.\n- Error handling for failed DNS lookups.\n- Prints the IP address of a given domain name.\n\n## Example Usage\n\nThis DNS resolver runs as a web server and listens for POST requests on the `/resolve` endpoint. The POST request should contain a JSON body with a `url` field.\n\nRun the server with the following command:\n\n```bash\ncargo run\n```\n\nHere's an example of how to use `curl` to send a POST request to the server:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"url\":\"www.google.com\"}' http://localhost:3030/resolve\n```\n\nThis will send a request to resolve the IP address of \"www.google.com\". The server will respond with a string containing the IP address or an error message.\n\n## Dependencies\nThis project uses the following crates:\n- `trust-dns-resolver` for DNS resolution.\n- `tokio` for asynchronous programming.\n- `warp` for web server functionality.\n- `serde` for serialization and deserialization.\n\n## Architecture Diagram\n\nBelow is the architecture diagram of the DNS Resolver:\n\n![Architecture Diagram](./images/architecture.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbujosa%2Fdns-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbujosa%2Fdns-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbujosa%2Fdns-resolver/lists"}