Automatic hosts detection and all-in-one config