def gentaglist(sublist, checkname, hostname):
    """Generate a tag list for passing to tag checking."""
    # Constants
    taglist = ["all"]
    # remove domain names from hostname
    hostname = hostname.split('.')[0]
    # Build our taglist
    taglist += sublist
    taglist.append(hostname)
    taglist.append(checkname)
    # Return our list
    return taglist