refactor for hostname parameter extensions. Renamed to domains