DEV Community

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

Collapse
 
annbob profile image
annbob

First. Thank you for the tutorial. I'm new to setting up a local DNS Server.

After some experimentation I've managed to get things working on the following system...
Ubuntu 18.04.4 LTS
Docker version 19.03.8, build afacb8b7f0
docker-compose version 1.23.1, build b02f1306
CoreDNS 1.6.9

For me to get things working correctly, I had to change the CNAME entry format from the line in the tutorial ...
server.example.com IN CNAME host.example.com
to
server.example.com. IN CNAME host
I added a '.' after 'server.example.com' and eliminated the '.example.com' from the referred record. With this format everything works as I expect on my system.
I don't know if the tutorial needs to be updated or something is different in my setup.

Thanks again for the tutorial. It was very helpful in getting things set up properly.

Collapse
 
robbmanes profile image
Robb Manes

Whoops! No, a period is necessary to indicate the end of a domain I believe. I'll fix the tutorial. Thank you for reporting it!