Name resolving of a subdomain

Hi, The getaddrinfo() function returns the same IP address for www2.domain.com and domain.com, namely that of domain.com while they are running on different servers and have different IP addresses. How can I get the IP address of my subdomain www2.domain.com?

Related