host: Add function to create two hosts from a range definition