{"id":30010299,"url":"https://github.com/dockur/dnsmasq","last_synced_at":"2026-01-20T03:10:38.591Z","repository":{"id":306390261,"uuid":"755314169","full_name":"dockur/dnsmasq","owner":"dockur","description":"Dnsmasq in a Docker container.","archived":false,"fork":false,"pushed_at":"2025-11-14T07:24:23.000Z","size":158,"stargazers_count":114,"open_issues_count":2,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-14T08:33:38.311Z","etag":null,"topics":["dhcp-server","dns","dns-server","dnsmasq","dnsmasq-server","docker-container","docker-image"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/dockur.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-09T21:43:12.000Z","updated_at":"2025-11-14T07:24:26.000Z","dependencies_parsed_at":"2025-07-25T12:35:49.897Z","dependency_job_id":"0f52d016-47bd-4529-a9fe-67527731b250","html_url":"https://github.com/dockur/dnsmasq","commit_stats":null,"previous_names":["dockur/dnsmasq"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dockur/dnsmasq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockur%2Fdnsmasq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockur%2Fdnsmasq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockur%2Fdnsmasq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockur%2Fdnsmasq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockur","download_url":"https://codeload.github.com/dockur/dnsmasq/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockur%2Fdnsmasq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28594958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dhcp-server","dns","dns-server","dnsmasq","dnsmasq-server","docker-container","docker-image"],"created_at":"2025-08-05T11:46:26.011Z","updated_at":"2026-01-20T03:10:38.586Z","avatar_url":"https://github.com/dockur.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/dockur/dnsmasq\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/dockur/dnsmasq/master/.github/logo.png\" title=\"Logo\" style=\"max-width:100%;\" width=\"256\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![Build]][build_url]\n[![Version]][tag_url]\n[![Size]][tag_url]\n[![Package]][pkg_url]\n[![Pulls]][hub_url]\n\n\u003c/div\u003e\u003c/h1\u003e\n\nDocker container of [dnsmasq](https://thekelleys.org.uk/dnsmasq/doc.html), an open-source DNS server.\n\n## Usage  🐳\n\n##### Via Docker Compose:\n\n```yaml\nservices:\n  dnsmasq:\n    image: dockurr/dnsmasq\n    container_name: dnsmasq\n    environment:\n      DNS1: \"1.0.0.1\"\n      DNS2: \"1.1.1.1\"\n    ports:\n      - 53:53/udp\n      - 53:53/tcp\n    cap_add:\n      - NET_ADMIN\n    restart: always\n```\n\n##### Via Docker CLI:\n\n```bash\ndocker run -it --rm --name dnsmasq -p 53:53/udp -p 53:53/tcp -e \"DNS1=1.0.0.1\" -e \"DNS2=1.1.1.1\" --cap-add=NET_ADMIN docker.io/dockurr/dnsmasq\n```\n\n## Configuration ⚙️\n\nYou can set the `DNS1` and `DNS2` environment variables to change which upstream DNS\nservers to use.\n\nFor example, you can set them to the public [Cloudflare](https://www.cloudflare.com/learning/dns/what-is-1.1.1.1/) servers like this:\n\n```yaml\nenvironment:\n  DNS1: \"1.0.0.1\"\n  DNS2: \"1.1.1.1\"\n```\n\nYou can extend the default configuration with a volume that mounts a\ndirectory containing `*.conf` configuration files:\n\n```yaml\nvolumes:\n  - ./dnsmasq.d/:/etc/dnsmasq.d/\n```\n\nYou can also override [dnsmasq.conf](https://github.com/dockur/dnsmasq/blob/master/dnsmasq.conf) completely with a volume that binds your custom configuration file:\n\n```yaml\nvolumes:\n  - ./dnsmasq.conf:/etc/dnsmasq.conf\n```\n\n## FAQ 💬\n\n  * ### Port 53 is already in use?\n\n  If some process on the host is already binding to port `53`, you may see an error similar\n  to the following:\n\n  ```\n  Error response from daemon: driver failed programming external connectivity on\n  endpoint dnsmasq (...): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind:\n  address already in use\n  ```\n\n  You can inspect which process is binding to that port:\n\n  ```bash\n  $ netstat -lnpt | grep -E ':53 +'\n  tcp    0    0 127.0.0.53:53    0.0.0.0:*    LISTEN    197/systemd-resolve\n  ```\n\n  On hosts running `systemd`, such as in this example, you can workaround this by\n  specifying the IP addresses on which to bind port `53`, for example:\n\n  ```yaml\n  ports:\n    - \"192.168.1.###:53:53/udp\"\n    - \"192.168.1.###:53:53/tcp\"\n  ```\n\n  There are many other host-specific cases where some process and configuration binds\n  port `53`. It may be an unused DNS daemon, such as `bind` that needs to be\n  uninstalled or disabled, or a number of other causes. So finding out which process is\n  binding the port is a good place to start debugging.\n\n## Stars 🌟\n[![Stars](https://starchart.cc/dockur/dnsmasq.svg?variant=adaptive)](https://starchart.cc/dockur/dnsmasq)\n\n[build_url]: https://github.com/dockur/dnsmasq/\n[hub_url]: https://hub.docker.com/r/dockurr/dnsmasq\n[tag_url]: https://hub.docker.com/r/dockurr/dnsmasq/tags\n[pkg_url]: https://github.com/dockur/dnsmasq/pkgs/container/dnsmasq\n\n[Build]: https://github.com/dockur/dnsmasq/actions/workflows/build.yml/badge.svg\n[Size]: https://img.shields.io/docker/image-size/dockurr/dnsmasq/latest?color=066da5\u0026label=size\n[Pulls]: https://img.shields.io/docker/pulls/dockurr/dnsmasq.svg?style=flat\u0026label=pulls\u0026logo=docker\n[Version]: https://img.shields.io/docker/v/dockurr/dnsmasq/latest?arch=amd64\u0026sort=semver\u0026color=066da5\n[Package]: https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fipitio.github.io%2Fbackage%2Fdockur%2Fdnsmasq%2Fdnsmasq.json\u0026query=%24.downloads\u0026logo=github\u0026style=flat\u0026color=066da5\u0026label=pulls\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockur%2Fdnsmasq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockur%2Fdnsmasq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockur%2Fdnsmasq/lists"}