Data Sheet
Smart Machine Smart Decision
SIM800 Series_AT Command Manual_V1.09 233 2015-08-03
OK
Parameter
See Write Command
Response
OK
ERROR
Write Command
AT+CDNSCFG=
<pri_dns>[,<sec_
dns>]
Parameters
<pri_dns> A string parameter which indicates the IP address of the
primary domain name server
<sec_dns> A string parameter which indicates the IP address of the
secondary domain name server
Parameter Saving
Mode
NO_SAVE
Max Response
Time
-
Reference
Note
8.2.14 AT+CDNSGIP Query the IP Address of Given Domain Name
AT+CDNSGIP Query the IP Address of Given Domain Name
Test Command
AT+CDNSGIP=
?
Response
OK
Response
OK
ERROR
If successful, return:
+CDNSGIP: 1, <domain name>,<IP1>[,<IP2>]
If fail, return:
+CDNSGIP:0,<dns error code>
Write Command
AT+CDNSGIP=
<domain name>
Parameters
<domain name> A string parameter which indicates the domain name
<IP1> A string parameter which indicates the first IP address
corresponding to the domain name
<IP2> A string parameter which indicates the second IP address
corresponding to the domain name
<dns error code> A numeric parameter which indicates the error code
8 DNS COMMON ERROR
3 NETWORK ERROR
There are some other error codes as well.
Parameter Saving
Mode
NO_SAVE