https://github.com/johnae/dnsmasq
Dnsmasq for use with docker containers (mostly built for CoreOS)
https://github.com/johnae/dnsmasq
Last synced: over 1 year ago
JSON representation
Dnsmasq for use with docker containers (mostly built for CoreOS)
- Host: GitHub
- URL: https://github.com/johnae/dnsmasq
- Owner: johnae
- Created: 2014-09-16T14:18:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-06T18:01:19.000Z (over 11 years ago)
- Last Synced: 2025-01-31T13:13:01.817Z (over 1 year ago)
- Language: Shell
- Size: 117 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
### Dnsmasq for docker
To get going create a data volume for persistence and sharing like so:
```docker run --name dnsmasq-data -v /etc/dnsmasq.d busybox```
Add a host like so:
```docker run --volumes-from=dnsmasq-data johnae/dnsmasq set_host ,```
Usually I add a domain like so:
```set_host base.domain.com,1.2.3.4```
Then I add each host under that domain like so:
```set_host host-a.base.domain.com,1.3.2.5```
Finally run (or restart) the dnsmasq container like so:
```docker run -d -p 53:53/udp --name dnsmasq --volumes-from=dnsmasq-data johnae/dnsmasq```
docker run -d -p 172.17.42.1:533:53/udp --volumes-from=dnsmasq-data johnae/dnsmasq