EasyManua.ls Logo

Quectel BG96 TCP/IP - AT+QIDNSGIP Get IP Address by Domain Name; AT+QICFG Configure Optional Parameters

Quectel BG96 TCP/IP
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 27 / 52
2.2.14. AT+QIDNSGIP Get IP Address by Domain Name
Before querying the DNS, the host should activate the context corresponding to <contextID> via
AT+QIACT first. Depending on the network, it will take at most 60 seconds to return the result.
Parameter
2.2.15. AT+QICFG Configure Optional Parameters
The Write Command configures some optional parameters such as the packet size for transparent access
mode, the format of the data to be sent or received, and the output format of received data.
.AT+QIDNSGIP Get IP Address by Domain Name
Test Command
AT+QIDNSGIP=?
Response
+QIDNSGIP: (range of supported <connectID>s),<host_name>
OK
Write Command
AT+QIDNSGIP=<contextID>,<hos
t_name>
Response
OK
+QIURC: "dnsgip",<err>,<IP_count>,<DNS_ttl>
[.....
+QIURC: "dnsgip",<host_IP_addr>]
If there is any error:
ERROR
Maximum Response Time
60 s, determined by network.
Characteristics
/
<contextID> Integer type. PDP context ID. Range: 116.
<host_name> String type. Domain name.
<err> Integer type. Error code of operation. Please refer to Chapter 4.
<IP_count> Integer type. Number of the IP addresses corresponding to <host_name>.
<DNS_ttl> Integer type. Time to live of the DNS.
<host_IP_addr> String type. IP address of <host_name>.
AT+QICFG Configure Optional Parameters
Test Command
AT+QICFG=?
Response
+QICFG: "transpktsize",(range of supported <transpkt_size>
s)
+QICFG: "transwaittm",(range of supported <transwaittm>s)

Table of Contents

Related product manuals