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?

Parents Reply Children
  • Hi Bert,

    Bert Baselmans said:
    Unfortunately I am unable to generate the executable serial_LTE_modem due to configuration errors related to HTTP_CLIENT and MQTT. So I am unable to run the test using serial_LTE_modem.

    Please can generate another ticket and provide your configuration and logs for analysis. The precompiled SLM application firmware is available on nRF9160 DK - Downloads - nordicsemi.com.

    Bert Baselmans said:
    That's why I tried to PING with MODEM_SHELL. This worked well and I see that getaddrinfo() now returns the correct IP address for the subdomain.

    I guess you mean your problem is solved. Correct?  Let me know if you need more help.

    Best regards,

    Charlie

  • Hi Charlie

    My problem has indeed been solved. I had overlooked that both domain name and subdomain name were preceded by HTTP:/. This apparently results in the IP address of the main domain being returned during resolving in both cases. The function getaddrinfo() did not return any error.

    Thank you for your help
    Bert

Related