AsyncDNSResolver fails to resolve working hostname—why?

Note that AsyncDNSResolver is a fairly new Apple sponsored framework (search for it).

I am trying to resolve a hostname (behind a CNAME) but cannot. In face even "ping" in mac Terminal can't.

The host I start with is apidev.leaptodigital.com - when I ask for its CNAME:

resolver.queryCNAME(name: "apidev.leaptodigital.com")

I get:

salespro-dev-server-2.eba-uxpxmksr.us-east-1.elasticbeanstalk.com

Great! But nothing I try with that hostname returns an IP address. I tried queryCNAME again, then queryA, then queryAAAA.

Yet I can send http traffic to this host, so its getting resolved somewhere.

Note that nslookup in Terminal finds it just fine.

David

PS: tried older APIs like CFHostStartInfoResolution but they don't return anything either. Did not try getHostName as its use is discouraged.

Answered by dhoerl in 815757022

The original host name is incorrect.

User error.

Accepted Answer

The original host name is incorrect.

User error.

AsyncDNSResolver fails to resolve working hostname—why?
 
 
Q