{"id":23498074,"url":"https://github.com/freedomben/dory-dnsmasq","last_synced_at":"2025-10-31T07:32:13.717Z","repository":{"id":52688235,"uuid":"53353605","full_name":"FreedomBen/dory-dnsmasq","owner":"FreedomBen","description":"The Dockerfile used to build the dnsmasq container used by dory","archived":false,"fork":false,"pushed_at":"2024-01-29T13:42:30.000Z","size":3,"stargazers_count":0,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-25T05:18:10.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/FreedomBen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-07T19:42:12.000Z","updated_at":"2016-03-07T20:50:54.000Z","dependencies_parsed_at":"2022-08-21T17:00:35.753Z","dependency_job_id":null,"html_url":"https://github.com/FreedomBen/dory-dnsmasq","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdory-dnsmasq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdory-dnsmasq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdory-dnsmasq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreedomBen%2Fdory-dnsmasq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreedomBen","download_url":"https://codeload.github.com/FreedomBen/dory-dnsmasq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239147046,"owners_count":19589529,"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":[],"created_at":"2024-12-25T05:18:21.029Z","updated_at":"2025-10-31T07:32:08.448Z","avatar_url":"https://github.com/FreedomBen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dory's dnsmasq container\n\n## What is this?\n\n[Dory](https://github.com/FreedomBen/dory) uses this container to provide the dnsmasq\nservices in conjunction with an nginx-proxy.  It's a very lightweight container built\non Alpine Linux (based off of [andyshinn/dnsmasq](https://hub.docker.com/r/andyshinn/dnsmasq/).\nSee the [dory](https://github.com/FreedomBen/dory) project page for more info.\n\n## How do I use it?\n\n### A single TLD\n\nYou can use this container in your project, or as a standalone utility if you'd like.\n\nHere's how to fire it up.\n\n```\ndocker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN freedomben/dory-dnsmasq:1.0.0 [\u003cdomain\u003e] [\u003cip\u003e]\n```\n\nSo if you wanted all queries against domain \"docker\" to be routed to IP 3.3.3.3:\n\n```\ndocker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN freedomben/dory-dnsmasq:1.0.0 docker 3.3.3.3\n```\n\nIf you'd rather extend it to bake in your defaults, here's an example:\n\n```\nFROM freedomben/dory-dnsmasq\n\nCMD[\"docker\", \"3.3.3.3\"]\n```\n\n### Multiple TLDs\n\nYou can have more than one TLD if you prefer.  Use the container the same way as with a single TLD, but add each domain and ip as extra args.\n\n```\ndocker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN freedomben/dory-dnsmasq:1.0.0 [\u003cdomain1\u003e] [\u003cip1\u003e] [\u003cdomain2\u003e] [\u003cip2\u003e]\n```\n\nSo if you wanted all queries against domain \"docker\" to be routed to IP 3.3.3.3, and dev to be routed to 4.4.4.4:\n\n```\ndocker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN freedomben/dory-dnsmasq:1.0.0 docker 3.3.3.3 dev 4.4.4.4\n```\n\nThe domains can go to the same IP.  You just have to repeat it.  Say you wanted both to go to 3.3.3.3:\n\n```\ndocker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN freedomben/dory-dnsmasq:1.0.0 docker 3.3.3.3 dev 3.3.3.3\n```\n\n### Wildcard\n\nYou can have all domain names that are not answered from /etc/hosts or DHCP be resolved to a specific address by using a `#` as the domain.  So to have all requests be resolved to 4.4.4.4:\n\n```\ndocker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN freedomben/dory-dnsmasq:1.0.0 '#' 4.4.4.4\n```\n\n*NOTE:  You have to put the # in quotes otherwise bash will think it's a comment character*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedomben%2Fdory-dnsmasq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreedomben%2Fdory-dnsmasq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedomben%2Fdory-dnsmasq/lists"}