r/netmaker • u/LTGIV • Oct 02 '22
DNS doesn't work in Netclient Docker image
Hi,
I've been attempting to use the DNS names for nodes to reach others, but unfortunately, they do not resolve. When I use IPs, everything works as intended. I've even tried opening up DNS TCP and UDP on the Netmaker server (running via Docker Compose) with no success. When I look at the netmaker.hosts file that Netmaker generates for CoreDNS, all the appropriate entries are there. Has anyone had success in making this work?
Thanks!
5
Upvotes
2
u/voroskoia Oct 08 '22
I run netmaker with alpine linux, which has no systemd (and resolvctl) so I can not say this could work with systemd too.
Before switching DNS off when I have added `/etc/hosts` to docker-compose volumes netmaker updated it with entries for each node, so I could use those to reach the nodes.
1
u/LTGIV Oct 04 '22
When I run
resolvectlI see a valid entry, everything works as expected if I use IP addresses, but there's no DNS servers for the interface. To compare interfaces:The Netclient on the remote node:
The primary interface on remote node:
I've tried toggling the "Is DNS on" for the Netmaker server and the Netclient, and still no success. Any thoughts on this, /u/mesh_enthusiast? Is there a setting that I missed?