Bug fixes

* Handling of numeric domains.
* Off-by-one error in IP address rotation.
* Killing prune thread on exit from withDNSCache.
Merge pull request #1 from vshabanov/bug-fixes

Bug fixes