Dnsmasq

dnsmasq

cat << EOF > /opt/dnsmasq.conf
#dnsmasq config, for a complete example, see:
#  http://oss.segetech.com/intra/srv/dnsmasq.conf
#log all dns queries
log-queries
#dont use hosts nameservers
no-resolv
#use cloudflare as default nameservers, prefer 1^4
server=1.0.0.1
server=1.1.1.1
strict-order
#serve all .company queries using a specific nameserver
server=/company/10.0.0.1
#explicitly define host-ip mappings
server=1.1.1.1
address=/myhost.company/10.0.0.2
EOF

docker run \
    --name dnsmasq \
    -d \
    -p 54:53/udp \
    -p 5380:8080 \
    -v /opt/dnsmasq.conf:/etc/dnsmasq.conf \
    --log-opt "max-size=100m" \
    -e "HTTP_USER=user" \
    -e "HTTP_PASS=password" \
    --restart always \
    jpillora/dnsmasq
Infee Fang
Infee Fang
互联网二手搬砖工