{"id":22367181,"url":"https://github.com/sukhoy94/dns-bind9","last_synced_at":"2026-05-16T12:31:05.222Z","repository":{"id":202895912,"uuid":"708373831","full_name":"sukhoy94/dns-bind9","owner":"sukhoy94","description":"Playing with bind9 local dns server.","archived":false,"fork":false,"pushed_at":"2023-10-22T12:25:27.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T17:13:31.458Z","etag":null,"topics":["bind9-configuration","dns-server","docker","docker-compose","localdns"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/sukhoy94.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-10-22T11:27:42.000Z","updated_at":"2023-10-22T12:26:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f2f4c14-a925-40f4-8b77-a5f262f9e035","html_url":"https://github.com/sukhoy94/dns-bind9","commit_stats":null,"previous_names":["sukhoy94/dns-bind9"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhoy94%2Fdns-bind9","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhoy94%2Fdns-bind9/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhoy94%2Fdns-bind9/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sukhoy94%2Fdns-bind9/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sukhoy94","download_url":"https://codeload.github.com/sukhoy94/dns-bind9/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689452,"owners_count":20656414,"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":["bind9-configuration","dns-server","docker","docker-compose","localdns"],"created_at":"2024-12-04T18:16:41.957Z","updated_at":"2026-05-16T12:31:00.201Z","avatar_url":"https://github.com/sukhoy94.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS Server with BIND9\nThis repository provides a Dockerized BIND9 setup for local DNS resolution, which can be particularly useful for developers looking to simulate production DNS environments locally or for internal network purposes.\n\n\n## Features:\nDockerized setup for easy deployment.\nPre-configured BIND9 for dusha-project.local.\n\n## dusha-project.local.\n\ndusha-project.local. is a sample domain which I'm using. The goal is to configure dns in such\nway that when you entering http://dusha-project.local in browser - it should point to \nthe localhost 80 port. And instead of using /etc/hosts like:\n\n```\n127.0.0.1 dusha-project.local\n```\n\nI want to achieve same results using bind9 dockerized.\n\n## Prerequisites:\n- Docker\n- Docker Compose\n\n\n###  Getting Started:\n\n1. Clone the repository:\n\n```\ngit clone https://github.com/sukhoy94/dns-bind9.git\n```\n\n2. Navigate to the repository folder:\n\n```\ncd dns-bind9\n```\n\n3. Build and Start the Docker container:\n\n```\ndocker-compose up -d\n```\n\n4. Test the DNS resolution:\n\n```\ndig @your_container_ip dusha-project.local\n```\n\n\n### Configuration:\nConfiguration files for BIND9 are located in the bind9-config directory. You can modify these files as per your requirements:\n\n- named.conf.local - Defines the zones.\n- db.local.template - Contains the DNS records for the defined zone.\n\n### Using on Host\n\nTo configure your system to use this DNS server, you'll need to add the \nDNS server's IP to the /etc/resolv.conf file on your host.\n\n1. Open the /etc/resolv.conf file in an editor:\n\n```\nsudo nano /etc/resolv.conf\n```\n\n2. Add the IP of your Docker container at the top of the list of DNS servers:\n\n```\nnameserver your_container_ip\n```\n\n3. Save and close the file.\n\nNow, any DNS query made from your system will first be routed to the DNS server running inside the Docker container.\nNote: In some systems, the /etc/resolv.conf file might get regenerated on reboot or when network settings change. If you notice that your changes get removed, you might need additional configuration to make them persistent.\n\n### Contributing:\nFeel free to fork, improve, and submit pull requests.\n\n### License:\nThis project is open-sourced software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukhoy94%2Fdns-bind9","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsukhoy94%2Fdns-bind9","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukhoy94%2Fdns-bind9/lists"}