added domain mask support

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

added domain mask support