Specifications

ENHANCEDIPSTACKEXTENSIONAT
COMMA
NDS
HSPA+ATCommandsReferenceGuide 254
EnhancedIPStackExtensionATCommands
QueryDNS#QDNS
ExecutecommandexecutesaDNSquerytoresolvethehostnameintoanIPaddress.
TestcommandreturnstheOKresultcode.
Syntax
Command Commandtype
AT#QDNS=[<hostname>] Execute
AT#QDNS=? Test
ParametersandValues
<hostname> Stringtype,hostname.
IftheDNSqueryissuccessful,theIPaddressisreportedintheresultcode,as
follows:
#QDNS:<hostname>,<IPaddress>
Where:
<hostname>‐stringtype.
<IPaddress>‐stringtype,intheformat“xxx.xxx.xxx.xxx”.
Notes
ThecommandhastoactivatetheGPRScontextifitwasnotpreviouslyactivated.Inthiscasethecontextis
deactivatedaftertheDNSquery.ItalsoworkswithGSMcontext,buttheGSMcontexthastobeactivated
before.
ThiscommandrequirescorrectsettingsforauthenticationparametersandthattheGPRSnetworkispresent(or
GSM,ifGSMcontextisused).
Thiscommandisavailableonly onthefirstvirtualportofCMUXandworksonthePDPcontext1andonthefirst
ConnId.SeeAT#SCFG.
DNSResponseCaching#CACHEDNS
SetcommandenablescachingamappingofdomainnamestoIPaddresses,asdoesaresolverlibrary.
ReadcommandreportswhethertheDNSResponseCachingiscurrentlyenabledornot,intheformat:
#CACHEDNS:<mode>
Testcommandreturnsthecurrentlycachedmappingalongwiththerangeofavailablevaluesforparameter
<mode>,intheformat:
#CACHEDNS:[<hostn1>,<I
Paddr1>,[…,[<hostnn>,<IPaddrn>,]]](0,1)
where:
<hostnn> Hostname,stringtype.
<IPaddrn> IPaddress,stringtype,intheformat“xxx.xxx.xxx.xxx”.