Create generic hostname and add constraint for hostname length