Data Sheet
SIM900 AT Commands Set
SIM900_ATC_V1.00 177 15.01.2010
AT+CDNSCFG?
PrimaryDns: <pri_dns>
SecondaryDns: <sec_dns>
OK
Write Command
AT+CDNSCFG=
<pri_dns>,<sec_
dns>
Response
OK
ERROR
Parameters
<pri_dns> a string parameter(string should be included in quotation
marks) which indicates the IP address of the primary
domain name server
<sec_dns> a string parameter(string should be included in quotation
marks) which indicates the IP address of the secondary
domain name server
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
Write Command
AT+CDNSGIP=
<domain name>
Response
OK
ERROR
If successful, return:
+CDNSGIP: 1, <domain name>,<IP>
If fail, return:
+CDNSGIP:0,<dns error code>
Parameters
<domain name> a string parameter(string should be included in
quotation marks) which indicates the domain name
<IP address> 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 code as well.