Specifications

Smart Machine Smart Decision
SIM900_AT Commands Manual_V1.07 196 2012.12.10
AT+CDNSGIP=
?
OK
Response
OK
ERROR
If successful, return:
+CDNSGIP: 1,<domain name>,<IP>
If fail, return:
+CDNSGIP:0,<dns error code>
Write Command
AT+CDNSGIP=
<domain name>
Parameters
<domain name> A string parameter(string should be included in
quotation marks) which indicates the domain name
<IP> A string parameter(string should be included in quotation
marks) which indicates the IP address corresponding to the
domain name
<dns error code> A numeric parameter which indicates the error code
10 DNS GENERAL ERROR
11 DNS MAX RETRIES,
12 DNS NO SERVER ADDR,
13 DNS NO MEMORY,
14 DNS INVALID NAME,
15 DNS INVALID RESP,
There are some other error codes as well.
Reference
Note
8.2.15 AT+CIPHEAD Add an IP Head at the Beginning of a Package Received
AT+CIPHEAD Add an IP Head at the Beginning of a Package Received
Response
+CIPHEAD: (list of supported <mode>s)
OK
Test Command
AT+CIPHEAD=
?
Parameter
See Write Command
Response
+CIPHEAD: <mode>
OK
Read Command
AT+CIPHEAD?
Parameter