{"id":21959308,"url":"https://github.com/sbarbett/test-bind-server","last_synced_at":"2026-05-15T22:05:25.010Z","repository":{"id":239966095,"uuid":"801119808","full_name":"sbarbett/test-bind-server","owner":"sbarbett","description":"Doing some testing with BIND and nginx","archived":false,"fork":false,"pushed_at":"2024-05-16T19:46:05.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T23:47:32.351Z","etag":null,"topics":["dns-server","docker","nginx","sysadmin-tool"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/sbarbett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-05-15T16:20:50.000Z","updated_at":"2024-05-16T19:46:59.000Z","dependencies_parsed_at":"2024-05-16T05:16:07.427Z","dependency_job_id":"663db552-6cb6-44ba-a7cf-00c11ed3a19b","html_url":"https://github.com/sbarbett/test-bind-server","commit_stats":null,"previous_names":["sbarbett/test-bind-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Ftest-bind-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Ftest-bind-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Ftest-bind-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbarbett%2Ftest-bind-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbarbett","download_url":"https://codeload.github.com/sbarbett/test-bind-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013996,"owners_count":20547181,"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-server","docker","nginx","sysadmin-tool"],"created_at":"2024-11-29T09:27:36.203Z","updated_at":"2025-10-09T00:38:52.578Z","avatar_url":"https://github.com/sbarbett.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-bind-server\n\nJust a simple script that spins up a BIND and nginx server on a newly provisioned Ubuntu VM. For testing purposes.\n\n## Bootstrap Usage\n\nClone the repository to your environment.\n\n```\ngit clone https://github.com/sbarbett/test-bind-server\ncd test-bind-server\n```\n\nThe `config.json` file contains a few parameters that you should define:\n\n* `domains` - A list of domains you want to add to your BIND server. It doesn't really matter what you choose. The server will give an authoritative response for these zones.\n* `ip` - This is the IP address that the specified domains will resolve to. I intended for it to be the IP of the server itself, which is why a web server is also installed.\n* `splash_text` - This is what will be displayed on the basic splash page at the index of the web server.\n\nOnce you've modified the configuration, make `setup.sh` executable and run it.\n\n```\nchmod +x setup.sh\nsudo ./setup.sh \u003e setup.log 2\u003e\u00261\n```\n\nThis will pipe the output into a log file, in case troubleshooting is necessary.\n\n### Testing\n\nYou can query locally:\n\n```\ndig @localhost example1.com\ncurl http://localhost\n```\n\n### Security Note\n\nThis script opens up ports and installs services and is _not_ inteaded to be run on any sort of production environment. This is for demos on VMs that are discarded after use.\n\n## Docker\n\nAlternatively, you can run BIND and nginx inside a container using a loopback address on your local machine. I've included a Dockerfile for this purpose. The Dockerfile will use the same `config.json` parameters, just set the `ip` to `127.0.0.1`.\n\nTo build and run (from the test-bind-server directory where `Dockerfile` is located):\n\n```\ndocker build -t test-bind-server .\ndocker run -d -p 53:53 -p 53:53/udp -p 80:80 --name mytestbindserver test-bind-server\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license. See LICENSE.md for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbarbett%2Ftest-bind-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbarbett%2Ftest-bind-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbarbett%2Ftest-bind-server/lists"}