LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 30 / 56
2.3.13. AT+QIDNSCFG Configure Address of DNS Server
Before setting the DNS server address, the host must activate the context of corresponding
<contextID>
with
AT+QIACT
first.
Parameter
2.3.14. AT+QIDNSGIP Get IP Address by Domain Name
This commands gets an IP address by domain name. Before querying the DNS, the host should activate
the context of corresponding
<contextID>
with
AT+QIACT
first.
1
Set
<result>
Integer type. Result code of the operation. See
Chapter 4
for details.
<time>
String type. The time synchronized from NTP server.
The format is "YYYY/MM/DD,hh:mm:ss
zz". Range of "zz": -48 to 56.
AT+QIDNSCFG Configure Address of DNS Server
Test command
AT+QIDNSCFG=?
Response
+QIDNSCFG: (
range of supported
<contextID>
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 parameters is specified, configure the primary and
secondary DNS server addresses of a specified PDP context:
OK
Or
ERROR
Maximum Response Time
300 ms
Characteristics
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.