Rainbow Electronics GM862-QUAD-PY User Manual

Page 343

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 343 of 434

#DNS – Manual DNS Selection

SELINT 2

AT#DNS=<cid>,
<primary>,
<secondary>

Set command allows to manually set primary and secondary DNS servers
either for a PDP context defined by +CGDCONT or for a GSM context
defined by #GSMCONT

Parameters:
<cid> - context identifier
0 - specifies the GSM context
1..5 - numeric parameter which specifies a particular PDP context

definition

<primary> - manual primary DNS server, string type, in the format

“xxx.xxx.xxx.xxx” used for the specified cid; we’re using this
value instead of the primary DNS server come from the
network (default is “0.0.0.0”)

<secondary> - manual secondary DNS server, string type, in the format

“xxx.xxx.xxx.xxx” used for the specified cid; we’re using
this value instead of the secondary DNS server come from
the network (default is “0.0.0.0”).


Note: if <primary> is ”0.0.0.0.0” and <secondary> is not “0.0.0.0”, then
issuing AT#DNS=… raises an error.

Note: if <primary> is ”0.0.0.0.0” we’re using the primary DNS server
come from the network as consequence of a context activation.

Note: if <primary> is not ”0.0.0.0” and <secondary> is “0.0.0.0”, then
we’re using only the manual primary DNS server.

Note: the context identified by <cid> has to be previously defined,
elsewhere issuing AT#DNS=… raises an error.

Note: the context identified by <cid> has to be not activated yet, elsewhere
issuing AT#DNS=… raises an error.

AT#DNS?

Read command returns the manual DNS servers set either for every
defined PDP context and for the single GSM context (only if defined), in the
format:

[#DNS: <cid>,<primary>,<secondary>[<CR><LF>
#DNS: <cid>,<primary>,<secondary>]]

AT#DNS=?

Test command reports the supported range of values for the <cid>
parameter.only, in the format:

#DNS: (0,5),,

Advertising