Nomad Job DNS Variable Interpolation

hi guy when I do

network {
            dns {

                servers = ["${attr.unique.network.ip-address}"]
            }
        }

And I cat inside a container I get nameserver ${attr.unique.network.ip-address} and not the IP
and the nomad version is - Nomad v0.12.0 (8f7fbc8e7b5a4ed0d0209968faf41b238e6d5817)

am I doing something wrong, or is this not possible?

AFAIK, all stanzas don’t support all sorts of interpolation. Personally, for me, using the interpolation has been a “best effort” for me; if it works, great, else I just try something else.

best of luck! :+1:

Ok Thank you, will look at some other method to solve my problem.