ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 411 of 545 2020-04-15
3.13.31. AT#QDNS - Query DNS
The command executes a DNS query
AT#QDNS[=<host name>]
Execution command executes a DNS query to solve the host name into an IP address. If the DNS
query is successful, then the IP address will be reported in the result code as follows:
#QDNS: <host name>,<IP address>
Parameter:
IP address in the result code
IP address in format "xxx.xxx.xxx.xxx", or empty
string if DNS query was unsuccessful.
The command activates the PDP context if it was not previously activated. In this case
the context is deactivated after the DNS query.
This command requires that the authentication parameters are correctly set, and the PS
network is present.
AT#QDNS=?
Test command returns the OK result code.