support for domains

made bind_to_domain private
Merge pull request #163 from shakkame/master-squash

support for domains