22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SIM5218</strong> Serial <strong>AT</strong> Command Set<br />

19.25 <strong>AT</strong>+CDNSGHNAME Query the domain name of given IP<br />

address<br />

Description<br />

The <strong>command</strong> is used to query the domain name of given IP address.<br />

SIM PIN<br />

YES<br />

References<br />

Vendor<br />

Syntax<br />

Test Command<br />

<strong>AT</strong>+CDNSGHNAME=<br />

Write Command<br />

<strong>AT</strong>+CDNSGHNAME=<br />

Responses<br />

OK<br />

Responses<br />

If successful,return:<br />

+CDNSGHNAME: ,,<br />

OK<br />

If fail,return:<br />

+CDNSGHNAME: 0,<br />

ERROR<br />

ERROR<br />

Defined values<br />

<br />

A string parameter (string should be included in quotation marks) which indicates the do<br />

ma-in name.<br />

<br />

A string parameter (string should be included in quotation marks) which indicates the IP<br />

address corresponding to the domain name.<br />

<br />

A numeric parameter which indicates the error code.<br />

10 DNS GENERAL ERROR<br />

<br />

A numeric parameter which indicates DNS result index. This value is always 1 if performing<br />

successfully. Currently only the first record returned from the DNS server will be reported.<br />

Examples<br />

<strong>AT</strong>+CDNSGHNAME=<br />

OK<br />

<strong>SIM5218</strong>_Serial _<strong>AT</strong>C_V1.36 385<br />

5/15/2012

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!