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


本文作者: Vincent0700
本文地址: https://vincentstudio.info/2019/03/04/021_Deploy_dnsmasq_with_docker/
版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!