EHS6T can't solve DNS 95% of time | Telit Cinterion IoT Developer Community
June 20, 2019 - 10:47am, 1598 views
Hello,
We use an EHS6T modem with a java software embedded. Our application try to reach our server using a DNS name. We are in a private network, not Internet.
The modem fail to solve the DNS a large part of time. We catch an IOException with the message "Could not resolve hostname".
We use a BearerControlListenerEx able to trace the bearer state, and we well get the good DNS IP for our two DNS server.
We compared the behavior to a TC65. In this old version, the same software works fine. But the DNS solving ***** 4s average. The EHS6 throws the IOException after only 1s.
Our network use DNS forwarder, so the DNS servers wich we get the IP are not the DNS servers wich solve the DNS. Is it possible this architecture make trouble?
The firmware version of our modem is:
Cinterion
EHS6
REVISION 03.001
A-REVISION 00.000.51
Thank you of any idea to move forward.
Regards. Michel ENFROY.
Precision about our java code:
We launch this AT command first: AT^SJNET="gprs","ourAPN","",""
After, that's classical:
try
{
sc = (SocketConnection) Connector.open("socket://ourDNS:ourPortIP");
}
catch (IOException e)
{
System.out.println(e.getMessage());
}
Thanks.
Hello Michel,
For now I'm not sure if DNS forwarder can make any troubles here. Thanks for information about timing difference between TC65 and new module - it very interesting remark.
I can see you use SJNET command. Could you please check module behavior if you will set DNS server address in this command? In this case module should use DNS address set by you instead of the address assigned by the network. You can try with your DNS server or, if it is possible, with e.g. 8.8.8.8.
Thanks,
Adam