得知互动

标题: Docker 1分钟搭建DNS服务器的方法 [打印本页]

作者: 云V小编    时间: 2022-4-7 11:02
标题: Docker 1分钟搭建DNS服务器的方法
docker pull docker-dnsmasq#dnsmasq config, for a complete example, see:# dnsmasq.conf run \  --name dnsmasq \  -d \  -p 53:53/udp \  -p 8080:8080 \  -v /opt/dnsmasq.conf:/etc/dnsmasq.conf \  --log-opt "max-size=100m" \  -e "HTTP_USER=admin" \  -e "HTTP_PASS=admin" \  --restart always \  jpillora/dnsmasqnameserver 127.0.0.1     #必填nameserver 172.17.205.28   #必填[本机主要网卡]...root@center ~# ping h2PING h2 (172.17.205.32) 56(84) bytes of data.64 bytes from 172.17.205.32 (172.17.205.32): icmp_seq=1 ttl=64 time=0.155 ms64 bytes from 172.17.205.32 (172.17.205.32): icmp_seq=2 ttl=64 time=0.203 ms^C--- h2 ping statistics ---2 packets transmitted, 2 received, 0% packet loss, time 1000msrtt min/avg/max/mdev = 0.155/0.179/0.203/0.024 msaddress=/h0/172.17.205.28address=/h2/172.17.205.32address=/h3/172.17.205.33address=/h4/172.17.205.34address=/h5/172.17.205.35....root@asdf ~# ping h0ping: h0: Name or service not known以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持Vecloud。




欢迎光临 得知互动 (https://bbs.dezhifl.com/) Powered by Discuz! X3.4