AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page193of233
DNS Response Caching - #CACHEDNS
#CACHEDNS - DNS Res
onse Cachin
AT#CACHEDNS=
[<mode>]
Set command enables caching a mapping of domain names to IP addresses, as does
a resolver library.
Parameter:
<mode>
0 - caching disabled; it cleans the cache too
1 - caching enabled
Note: the validity period of each cached entry (i.e. how long a DNS response
remains valid) is determined by a value called the Time To Live (TTL), set by the
administrator of the DNS server handing out the response.
Note: it is recommended to clean the cache, if command +CCLK had been issued
while the DNS Response Caching was enabled.
AT#CACHEDNS?
Read command reports whether the DNS Response Caching is currently enabled or
not, in the format:
#CACHEDNS: <mode>
AT#CACHEDNS=?
Test command returns the currently cached mapping along with the range of
available values for parameter <mode>, in the format:
#CACHEDNS: [<hostn1>,<IPaddr1>,[…,[<hostnn>,<IPaddrn>,]]](0,1)
where:
<hostnn> - hostname, string type
<IPaddrn> - IP address, string type, in the format “xxx.xxx.xxx.xxx”
Manual DNS Selection - #DNS
#DNS – Manual DNS Selection
AT#DNS=<cid>,
<primary>,
<secondary>
Set command allows to manually set primary and secondary DNS servers for a PDP
context defined by +CGDCONT.
Parameters:
<cid> - a numeric parameter which specifies a particular PDP context definition
(see +CGDCONT command)
Ipv4- 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”)
Ipv6- manual primary DNS server, string type, in the format
“xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.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.0.0.0.0.0.0.0.0.0.0.0.0”).
Ipv6 can also be in HEX format:
“xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx”
<secondary>