Data Sheet
Smart Machine Smart Decision
PrimaryDns: <pri_dns>
SecondaryDns: <sec_dns>
OK
AT+CDNSCFG?
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 NO_SAVE
Mode
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 Response
AT+CDNSGIP= 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
There are some other error codes as well.
SIM800 Series_AT Command Manual_V1.05 224 2014-07-31