update dns resolving

1. ipv6+ipv4
2. /etc/hosts
3. bugfixes
Merge pull request #74 from anton-kotenko/master

update dns resolving