The dns port is 53.
docker run -d --name=dnsmasq --net=host --cap-add=NET_ADMIN liuxuc63/dnsmasq:latest
# docker-compose -f docker-compose.yaml --compatibility up -d
version: '3.2'
services:
dnsmasq:
#image: andyshinn/dnsmasq:2.75
image: liuxuc63/dnsmasq:latest
restart: always
container_name: dnsmasq
hostname: dnsmasq
network_mode: "host"
cap_add:
- NET_ADMIN
deploy:
resources:
limits:
cpus: '0.25'
memory: 32M
http
{
resolver 127.0.0.1;
server
{
ssl_stapling on;
ssl_stapling_verify on;
}
}
# docker-compose -p ccdns -f docker-compose.yaml --compatibility up -d
# docker-compose -p ccdns down
# dns-port=53
version: '3.2'
services:
dnsmasq:
#image: andyshinn/dnsmasq:2.75
image: liuxuc63/dnsmasq:latest
restart: always
container_name: dnsmasq
hostname: dnsmasq
network_mode: "host"
volumes:
- /opt/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf
- /opt/dnsmasq/resolv.dnsmasq.conf:/etc/resolv.dnsmasq.conf
cap_add:
- NET_ADMIN
deploy:
resources:
limits:
cpus: '0.25'
memory: 32M
nameserver 8.8.8.8
nameserver 8.8.4.4
# specify the resolv-file = resolv.dnsmasq.conf
resolv-file=/etc/resolv.dnsmasq.conf
Content type
Image
Digest
Size
2.4 MB
Last updated
about 6 years ago
docker pull liuxuc63/dnsmasq