{"id":26666470,"url":"https://github.com/ilikepizza2/dns-server-node","last_synced_at":"2026-06-23T20:31:22.242Z","repository":{"id":196058377,"uuid":"694250794","full_name":"Ilikepizza2/dns-server-node","owner":"Ilikepizza2","description":"A custom made dns server implementation in pure node.js with zero dependencies","archived":false,"fork":false,"pushed_at":"2023-09-20T16:31:25.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T13:53:24.142Z","etag":null,"topics":["computer-networks","dns-server","nodejs-server"],"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/Ilikepizza2.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,"publiccode":null,"codemeta":null}},"created_at":"2023-09-20T16:09:27.000Z","updated_at":"2024-06-14T02:02:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"af137ec4-dc6c-4b90-b3ec-720e445af481","html_url":"https://github.com/Ilikepizza2/dns-server-node","commit_stats":null,"previous_names":["ilikepizza2/dns-server-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ilikepizza2/dns-server-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilikepizza2%2Fdns-server-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilikepizza2%2Fdns-server-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilikepizza2%2Fdns-server-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilikepizza2%2Fdns-server-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ilikepizza2","download_url":"https://codeload.github.com/Ilikepizza2/dns-server-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ilikepizza2%2Fdns-server-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34706579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":["computer-networks","dns-server","nodejs-server"],"created_at":"2025-03-25T18:35:13.588Z","updated_at":"2026-06-23T20:31:22.225Z","avatar_url":"https://github.com/Ilikepizza2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom DNS Server in Node.js\n\nThis is a basic custom DNS server implemented in Node.js with no external dependencies. It allows you to run a DNS server that can resolve domain names to IP addresses. You can use this DNS server for local testing or as a base for more advanced DNS server functionality.\n\n## Installation\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/Ilikepizza2/dns-server-node.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd dns-server-node\n   ```\n\n3. Install the necessary dependencies (there are none for this project):\n\n   ```bash\n   # There are no external dependencies\n   ```\n\n## Usage\n\n1. Start the custom DNS server:\n\n   ```bash\n   sudo node ./index.js\n   ```\n\n   This will start the DNS server on the default port 53.\n   Note: sudo is required because ports\u003c80 are only accessible through root previliges\n\n2. Test the DNS server using the `dig` command. For example, to resolve the IP address of \"example.com,\" run:\n\n   ```bash\n   dig example.com @127.0.0.1\n   ```\n\n   Replace `127.0.0.1` with the IP address of your DNS server if it's running on a different machine.\n\n3. The DNS server should respond with the IP address associated with the domain name you queried.\n\n4. You can verify the response by running\n\n    ```bash\n    dig example.com\n    ```\n    This will respond with the actual address from the server your machine points to.\n\n## Customization\n\nYou can customize the DNS server behavior by editing the `index.js` file. For example, you can add your own DNS records or modify the server's behavior as needed for your project.\n\n## Adding your own records\nYou can add the `.zone` file into the /zones/ directory. You can also parse any txt file by installing `dns-zonefile` and running the script `addZone.sh` which is included. This wasn't supported by default because I didn't want to include any external dependency. \n\n```bash\nnpm i dns-zonefile\nchmod +x ./addZone.sh\n./addZone.sh\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filikepizza2%2Fdns-server-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filikepizza2%2Fdns-server-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filikepizza2%2Fdns-server-node/lists"}