generate unique hostname from mac address