ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 412 of 545 2020-04-15
3.13.32. AT#NWDNS - DNS from Network
The command allows to get the primary and secondary DNS addresses for selected GSM or PDP context
identifiers
AT#NWDNS=[<cid>[,...]]
Execution command returns either the primary and secondary DNS addresses for the GSM context
(if specified) and/or a list of primary and secondary DNS addresses for the specified PDP context
identifiers. The command returns a row of information for every specified <cid> whose context has
been already defined. No row is returned for a <cid> whose context has not been defined yet. The
response is in the form:
#NWDNS: <cid
n
>,<PDNSaddress
n
>,<SDNSaddress
n
><CR><LF>
#NWDNS: <cid
p
>,<PDNSaddress
p
>,<SDNSaddress
p
><CR><LF>
...
#NWDNS: <cid
q
>,<PDNSaddress
q
>,<SDNSaddress
q
><CR><LF>
Parameter:
Generic context identifier. The value of max is returned by the test
command
specifies a particular PDP context definition (see +CGDCONT
command)
Parameters response description:
Generic primary DNS address, or assigned
during PDP (or GSM) context activation.
Generic secondary DNS address, or assigned
during PDP (or GSM) context activation.
Entering AT#NWDNS= (no <cid> specified), the DNS addresses for all defined contexts
are returned.
Issuing the command with more than 6 input parameters raises an error.
The command returns only one row of information for every specified <cid>, even if the
same <cid> is present more than once.