fix bug

Determine nreqt.host is a domain name or a ip address,when it's a domain name,resolve it.
Merge pull request #26 from Hevienz/master

fix bug