Fixed bug /etc/resolv.conf parsing error with ipv6.

Fixed bug /etc/resolv.conf parsing error with ipv6.