{"id":21643689,"url":"https://github.com/akshayxml/dns-forwarder","last_synced_at":"2026-05-07T08:32:43.897Z","repository":{"id":221953529,"uuid":"742857840","full_name":"akshayxml/dns-forwarder","owner":"akshayxml","description":"A simple DNS Forwarder that can resolve the IP address for a host either from it’s local cache, or by forwarding the request to an authoritative nameserver.","archived":false,"fork":false,"pushed_at":"2024-04-25T04:17:43.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T04:09:46.756Z","etag":null,"topics":["dns","dns-forwarder","john-crickett","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/akshayxml.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-01-13T15:25:30.000Z","updated_at":"2024-04-25T04:17:46.000Z","dependencies_parsed_at":"2024-02-11T11:43:57.395Z","dependency_job_id":null,"html_url":"https://github.com/akshayxml/dns-forwarder","commit_stats":null,"previous_names":["akshayviru/dns-forwarder","akshayxml/dns-forwarder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayxml%2Fdns-forwarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayxml%2Fdns-forwarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayxml%2Fdns-forwarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akshayxml%2Fdns-forwarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akshayxml","download_url":"https://codeload.github.com/akshayxml/dns-forwarder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244394458,"owners_count":20445631,"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-forwarder","john-crickett","nodejs"],"created_at":"2024-11-25T05:35:31.739Z","updated_at":"2026-05-07T08:32:38.866Z","avatar_url":"https://github.com/akshayxml.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS-Forwarder\n\nA simple DNS Forwarder that can resolve the IP address for a host either from it’s local cache, or by forwarding the request to an authoritative nameserver.\n\n## Table of Contents\n\n- [DNS Forwarder](#dns-forwarder)\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [Usage](#usage)\n\n## Introduction\n\n\nThe DNS Forwarder is a lightweight utility designed to streamline DNS resolution by efficiently retrieving IP addresses for hosts. It operates as a simple DNS forwarding service, utilizing a local cache for quick lookups and seamlessly forwarding unresolved queries to authoritative nameservers. This project is based on [John Crickett's coding challenge #44](https://codingchallenges.substack.com/p/coding-challenge-44-dns-forwarder).\n\n## Installation\n\nThis project can be easily deployed using Docker. Follow the steps below to install and run the project using Docker:\n\n### Prerequisites\nBefore you begin, ensure that you have Docker installed on your machine. If you haven't installed Docker yet, you can download and install it from the [official Docker website](https://www.docker.com/).\n\n#### Installation Steps\n1. Clone the Repository: Clone the project repository to your local machine using the following command:\n\n        git clone https://github.com/AkshayViru/dns-forwarder.git\n\n2. Navigate to the Project Directory: Change into the project directory:\n\n        cd dns-forwarder\n    \n3. Build the Docker Image: Build the Docker image using the provided Dockerfile. Run the following command in the project directory:\n\n        docker build -t dns-forwarder .\n\n4. Run the Docker Container: Once the Docker image is built successfully, you can run the Docker container using the following command:\n    \n        docker run -d -p 1053:1053/udp dns-forwarder\n\n# Usage\n\n- Send a request to DNS Forwarder and you should see a response like so:\n\n        % dig @0.0.0.0 -p 1053 www.google.com\n\n        ; \u003c\u003c\u003e\u003e DiG 9.10.6 \u003c\u003c\u003e\u003e @127.0.0.1 -p 1053 www.google.com\n        ; (1 server found)\n        ;; global options: +cmd\n        ;; Got answer:\n        ;; -\u003e\u003eHEADER\u003c\u003c- opcode: QUERY, status: NOERROR, id: 43712\n        ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n        \n        ;; OPT PSEUDOSECTION:\n        ; EDNS: version: 0, flags:; udp: 512\n        ;; QUESTION SECTION:\n        ;www.google.com.                        IN      A\n        \n        ;; ANSWER SECTION:\n        www.google.com.         118     IN      A       142.250.179.228\n        \n        ;; Query time: 11 msec\n        ;; SERVER: 127.0.0.1#1053(127.0.0.1)\n        ;; WHEN: Wed Jan 10 18:09:54 GMT 2024\n        ;; MSG SIZE  rcvd: 59\n- Retrying a request before the time-to-live (TTL) provided by authoritative nameserver can offer faster response retrieval, benefiting from the cached response in the DNS Forwarder.\n- To use any port other than 1053, update PORT value in the dockerfile and in the 4th step of Installation instructions above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayxml%2Fdns-forwarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakshayxml%2Fdns-forwarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakshayxml%2Fdns-forwarder/lists"}