Skip to content

defektive/docker-dnsmasq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-dnsmasq is a tool for adding docker containers to dnsmasq config in realtime.

Requirements

macOS

  • golang
  • brew
  • dnsmasq (installed with brew)
  • docker-toolbox (not docker for mac)

Linux

  • golang
  • systemctl
  • dnsmasq
  • docker

Installation

go get github.com/defektive/docker-dnsmasq

Usage

macOS

    sudo docker-dnsmasq -c=/usr/local/etc/dnsmasq.d/docker.conf \
    -r="brew services restart dnsmasq" \
    -d=tcp://192.168.99.100:2376 \
    -t=$DOCKER_CERT_PATH daemon

Linux

    sudo docker-dnsmasq daemon

is equal to

    sudo docker-dnsmasq -c=/etc/dnsmasq.d/docker.conf -r="systemctl restart dnsmasq" daemon

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages