NSD: Access to node FQDN from within consul-template?

Hi :wave:

Looking at the Services API it seems I can access a number of fields from within consul-template such as :

  • Address
  • Port
  • ServiceName
  • etc

Is there a way to also access the nodes FQDN that an allocation is placed on ie. some-node-name.domain.tld?

I would like to render templates in my Nomad jobs for stuff that requires FQDN names instead of IP addresses for certain values - for example CoreDNS SRV records.

Hi @henrikjohansen,

This is not currently possible unfortunately, but is certainly something we would consider adding if there is community interest. If possible, could you raise this as a feature request against the Nomad repo so other engineers and community members could read and comment?

Thanks,
jrasell and the Nomad team