SocketError: WSANO_DATA The requested name is valid, but no data of the requested type was found.

Question:

I get the following error in the LastErrorText for domain “something.com”.

…
    connectSocket:
      connect_ipv6_or_ipv4:
        resolveHostname6:
          getAddressInfo:
            Failed to get host address info. (3)
            SocketError: WSANO_DATA The requested name is valid, but no data of the requested type was found.
            WSANO_DATA typically indicates a problem with DNS -- possibly a missing CNAME record for the host.
            hostOrIpAddr: something.com
            port: 587
            Versions of Windows earlier than Windows XP are limited to handling IPv4 only
            On Windows Server 2003 and Windows XP, IPv6 addresses are returned only if IPv6 is installed on the local computer.
          --getAddressInfo
        --resolveHostname6
        Domain to IP address resolution failed.
      --connect_ipv6_or_ipv4
    --connectSocket
…

How do I resolve this problem?

Answer:

One possibility is that no DNS records actually exist for the domain name. In other words, the domain name does not resolve to any IP address.
Another, more likely possibility is that this is a network/DNS problem specific to your computer or local network. For example, if you open a shell session or DOS command prompt and type

nslookup something.com

It should fail. If it works from some other computer located on some other network, then you know the problem is specific to your local network. The problem is not in Chilkat or your application, it’s a problem for a system/network administrator to fix.

Tags :