{"id":19606876,"url":"https://github.com/chesszebra/docker-image-dns","last_synced_at":"2026-05-14T17:37:13.706Z","repository":{"id":140735715,"uuid":"102252063","full_name":"chesszebra/docker-image-dns","owner":"chesszebra","description":"A Docker image that sets up a local DNS server.","archived":false,"fork":false,"pushed_at":"2020-11-01T10:00:26.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T16:50:09.629Z","etag":null,"topics":["dns","docker","docker-image","networkmanager"],"latest_commit_sha":null,"homepage":null,"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/chesszebra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"chesszebra","custom":["https://chesszebra.com"]}},"created_at":"2017-09-03T08:51:38.000Z","updated_at":"2020-11-01T10:00:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f46e478-cde4-4bc4-8436-cffb7468b938","html_url":"https://github.com/chesszebra/docker-image-dns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chesszebra/docker-image-dns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fdocker-image-dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fdocker-image-dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fdocker-image-dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fdocker-image-dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chesszebra","download_url":"https://codeload.github.com/chesszebra/docker-image-dns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesszebra%2Fdocker-image-dns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33035970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["dns","docker","docker-image","networkmanager"],"created_at":"2024-11-11T10:07:28.917Z","updated_at":"2026-05-14T17:37:13.691Z","avatar_url":"https://github.com/chesszebra.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/chesszebra","https://chesszebra.com"],"categories":[],"sub_categories":[],"readme":"# docker-image-dns\n\nThis repository contains the Docker image that can be used to set up \na local dns server. This DNS server will let you browse to containers\nby appending `.docker` to the container name in the browser.\n\nThis image is based on https://github.com/jderusse/docker-dns-gen\n\n## Usage\n\nConfigure the local DNS Masq by doing the following:\n\n```bash\nsudo vim /etc/NetworkManager/dnsmasq.d/01_docker\n```\n\nEnter the following text:\n\n```text\nbind-interfaces\ninterface=lo\ninterface=docker0\nserver=/docker/127.0.0.1#54\n```\n\nRestart the NetworkManager:\n\n```bash\nsudo systemctl restart NetworkManager\n```\n\nNext start the container and make sure it always restarts:\n\n```bash\ndocker run --detach --name dns \\\n  --restart always \\\n  --publish 54:53/udp \\\n  --volume /var/run/docker.sock:/var/run/docker.sock \\\n  chesszebra/dns -R\n```\n\nAlternatively, if you are running a more barebones linux without dnsmasq and \nNetworkManager this is probably the easiest way to get it working:\n\n1. Skip the NetworkManager config since it does not apply.\n2. Start the container instead with `–publish 53:53/udp`\n3. Add `127.0.0.1` to `/etc/resolv.conf`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesszebra%2Fdocker-image-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchesszebra%2Fdocker-image-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesszebra%2Fdocker-image-dns/lists"}