Bugfix: /etc/resolv.conf parsing error with ipv6.

Bugfix: /etc/resolv.conf parsing error with ipv6.