With following limitations: - only first line is handled - only works well when domain name = profile name