added domain mask support

added domain mask support
Merge pull request #5 from DiliBau/master

added domain mask support