LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 26 / 52
2.2.13. AT+QIDNSCFG Configure Address of DNS Server
Before setting the DNS address, the host must activate the context corresponding to <contextID> via
AT+QIACT first.
Parameter
<port> Integer type. Port number of NTP server. Range: 1-65535. Default value: 123.
<auto_set_time> Integer type. Whether to automatically set synchronized time to local time.
0 Not set
1 Set
<err> Integer type. Error code of operation. Please refer to Chapter 4.
<time> String type. Time synchronized from NTP server.
The format is "YYYY/MM/DD,hh:mm:sszz". Range of "zz": -48 to 56.
AT+QIDNSCFG Configure Address of DNS Server
Test command
AT+QIDNSCFG=?
Response
+QIDNSCFG: (range of supported <connectID>s),<pridnsadd
r>,<secdnsaddr>
OK
Write Command
AT+QIDNSCFG=<contextID>,[<pr
idnsaddr>[,<secdnsaddr>]]
Response
If the optional parameters are omitted, query the current DNS
server addresses of a specified PDP context:
+QIDNSCFG: <contextID>,<pridnsaddr>,<secdnsaddr>
OK
If any of the optional parameters is specified, set the primary and
secondary DNS server addresses of a specified PDP context:
OK
If there is any error:
ERROR
The command takes effect immediately.
The configurations will not be saved.
<contextID> Integer type. PDP context ID. Range: 1–16.
<pridnsaddr> String type. Primary DNS server address.
<secdnsaddr> String type. Secondary DNS server address.