I have an autoscaling group with N nodes in it. Quite often nodes will be killed/added, and whenever a new node is added I need to assign a subdomain to it:
Eg: node http