We name all of our servers by serial number, but in DNS they have a more useful name. In the Foreman all hosts list to see the FQDN isn’t all that useful. Is there a way I can get it to show the CNAME instead?
Show hosts by their CNAME as opposed to there fqdn
It’s not easily possible, the DNS API does not provide you this information and Foreman doesn’t have it. However you can write plugin or feature to acquire this from DNS probably. Unsure how this would work (when to query DNS, when to store this in DNS etc). Maybe it could be a fact and the feature could be “show fact instead of hostname”.