DEV Community

Discussion on: Running CoreDNS as a DNS Server in a Container

Collapse
 
digitaldan profile image
Digital Dan • Edited

If you have a problem with the availability of port 53, because it is being used by another service, you may want to check out the following link:

github.com/dprandzioch/docker-ddns...

I found that directing traffic from 53 to 5353 worked, in which case you will have to start docker with something like this:

docker run -d --name coredns1 --restart=always --volume=/home/XXX/containers/coredns/:/root/ -p 5353:53/tcp -p 5353:53/udp coredns/coredns -conf /root/Corefile

This is covered in more detail in Aaron Hirsch's comment in the above link.

Thank you for this tutorial. Much appreciated!