Deploy dnsmasq with docker

Build

$ git clone https://github.com/Vincent0700/dns-server.git
$ cd dns-server
$ docker-compose up --build -d

Config

  • conf/dnsmasq.conf: base config file
  • conf/hosts: domain mapping
  • conf/resolv.conf: upstream dns server

Flush dns

$ docker restart dnsmasq