Curl hostname not found - chroot DNS

I have a project which runs on FreeBSD, OpenBSD, and a couple of different Linux distros. Generaly speaking it runs as a service with daemontools or systemd AND it is running inside a chroot. So far the complicated bits have been the dyn libs and /dev. AND while I have most of the features working in
ClearLinux there is one but that does not…

My app will shell out to curl and curl needs access to DNS. I’ve copied the /etc/resolv.con but still ClearLinux is not resolving the hostnames in the curl command. I imagine that this is because ClearLinux uses system-resolved which will mean I need to do something special inside the chroot but I simply o not know what…

While DNS from chroot is the specific need… it sure would be great to know exactly what I need rather than guessing and defeating the purpose of the chroot in the first place… Even if that is a recommendation to use nspawn.

Thanks