https://drive.google.com/file/d/1ViHeHO1lDZuRFl6QuR5QSB8KvhEd8ceL/view?usp=sharing in the example project RA6M3 from Renesas, I have an error in dnsQuerryFunc(). Can you guide me to get a correct output?
Hello Vasanth,
Thanks for reaching out Renesas Engineering Community.
Please let me inform you, that I tested the project you shared and DNS Lookup is successful for me as you can see:
I can successfully resolve the IP address from the hostname io.adafruit.com.
So the issue is not related with the sample code you test, since the same sample code works fine for me.
To check if it is an issue related with your router and your personal network you can open the cmd prompt and type command:
>nslookup io.adafruit.com
And if it is successful you should see the IP addresses to get resolved for this hostname.
Thanks and Regards,
IK
Thank you, Now I was tried with another network DNS Lookup for io.adafruit.com is : 163.195.192.12 working fine. But failed to connect the server error.
But when I was connected through the Jio fiber router that DNS lookup failed. Now connected with my mobile IP DNS lookup is passed. Can you explain the reason?
Well regarding the error you are getting it looks like that something is going wrong with the HTTPS_TRUSTED_ROOT_CA certificate.
Since inside this function this certificate is checked to establish secure TLS connection to the Adafruit server.
Please make sure that you have generated properly as mentioned in the markdown file steps, which you can find in this link below:
https://github.com/renesas/ra-fsp-examples/blob/master/example_projects/ek_ra6m3/aws_https_client/aws_https_client_ek_ra6m3_ep/aws_https_client_notes.md
You client private key and certificate seems to be ok since this function is successful:
And you get this message:
Now as far it concerns the DNS lookup failing, what you said it confirms my first response that this is related to your network.
I am sorry sir but I cannot know what settings you have done to this network. It could be anything, it could be the fact that there is any firewall enabled, it could be something in your router settings.
You can verify if it is a network related issue if for example you open the command prompt in your laptop which is also connected to the network provided from the specific router (Jio fiber router )
And if it also fails from your laptop and cannot resolve the IP address from the hostname than for sure it is a network related issue.