nslookup
is returning different answers for these queries:
nslookup my.example.com
nslookup http://my.example.com
I'm kind of confused because with http
I would expect it to return NXDOMAIN
error. Without http
it returns a plain IP.
But, and this is the root of my confusion, the form nslookup http://my.example.com
seems to be returning the CNAMEs and IPs that I'm actually expecting to see.
Here is the output of nslookup http://my.example.com
$ nslookup http://my.example.com
Server: 172.17.0.2
Address: 172.17.0.2#53
Non-authoritative answer:
http://my.example.com canonical name = www.example.prod.us.onehippo.com.
www.example.prod.us.onehippo.com canonical name = example.hosting.us.onehippo.com.
Name: example.hosting.us.onehippo.com
Address: my ip
I'm confused. With http
shouldn't nslookup
return an error? If not, then why with http
and without http
the answers are different?