Changed host and domains parsing.
Merge pull request #9 from tuomasvapaavuori/hosts_parsing

Changed host and domains parsing.