docker-dnsmasq支持通过web页面配置域名映射,镜像地址:https://hub.docker.com/r/jpillora/dnsmasq

使用步骤如下:

1、在Docker宿主上创建 /opt/dnsmasq.conf 配置文件

touch /opt/dnsmasq.conf

2、docker run启动容器

docker run \
    --name dnsmasq \
    -d \
    -p 53:53/udp \
    -p 5380:8080 \
    -v /opt/dnsmasq.conf:/etc/dnsmasq.conf \
    --log-opt "max-size=100m" \
    -e "HTTP_USER=admin" \
    -e "HTTP_PASS=123456" \
    --restart always \
    jpillora/dnsmasq

HTTP_USER:web页面登录的管理员帐号

HTTP_PASS:web页面登录的管理员密码

3、通过 ip:5380 地址访问web页面,使用帐户密码登录后在线编辑 dnsmasq.conf 文件

我的dnsmasq.conf配置文件内容如下:

server=172.16.20.150
address=/test.gfstack.geo/192.168.36.158

 
项目地址:https://github.com/jpillora/docker-dnsmasq

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-02-09
  • 2022-03-05
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-06-12
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2021-09-28
  • 2021-06-16
  • 2022-12-23
相关资源
相似解决方案