https://github.com/lollonet/docker-coredns
Docker image to run CoreDNS
Example command to run CoreDNS in a container, adding the example config from the repo. This sets up CoreDNS as a proxy, for sending DNS request to Google using HTTPS
docker run -m 100m --expose=53 --expose=53/udp -p 53:53 -p 53:53/udp -v "$PWD"/config:/etc/coredns --restart=on-failure --name coredns lollonet/coredns
To run CoreDNS as an authorative DNS server for a zone, add the appropriate zone file in the config directory and adjust the Corefile.
For more CoreDNS info, check the Quick Start guide
Example docker-compose.yml
---
version: '3.1'
services:
coredns:
image: coredns
container_name: coredns
restart: on-failure
expose:
- '53'
- '53/udp'
ports:
- '127.0.0.1:53:53'
- '127.0.0.1:53:53/udp'
volumes:
- './config:/etc/coredns'
Content type
Image
Digest
Size
19.1 MB
Last updated
over 7 years ago
docker pull lollonet/coredns