Fixed to consider IPv6 nameservers and to also handle case where only IPv6 nameservers are specified.