{"record":{"id":"422972f0b01cf1b7","repo":"sqlmapproject/sqlmap","slug":"data-retrieval-through-dns-channel-failed","errorCode":null,"errorMessage":"data retrieval through DNS channel failed","messagePattern":"data retrieval through DNS channel failed","errorType":"exception","errorClass":"SqlmapNotVulnerableException","httpStatus":null,"severity":"error","filePath":"lib/techniques/dns/test.py","lineNumber":30,"sourceCode":"from lib.core.data import logger\nfrom lib.core.dicts import FROM_DUMMY_TABLE\nfrom lib.core.exception import SqlmapNotVulnerableException\nfrom lib.techniques.dns.use import dnsUse\n\ndef dnsTest(payload):\n    logger.info(\"testing for data retrieval through DNS channel\")\n\n    randInt = randomInt()\n    kb.dnsTest = dnsUse(payload, \"SELECT %d%s\" % (randInt, FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), \"\"))) == str(randInt)\n\n    if not kb.dnsTest:\n        errMsg = \"data retrieval through DNS channel failed\"\n        if not conf.forceDns:\n            conf.dnsDomain = None\n            errMsg += \". Turning off DNS exfiltration support\"\n            logger.error(errMsg)\n        else:\n            raise SqlmapNotVulnerableException(errMsg)\n    else:\n        infoMsg = \"data retrieval through DNS channel was successful\"\n        logger.info(infoMsg)\n","sourceCodeStart":12,"sourceCodeEnd":34,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/techniques/dns/test.py#L12-L34","documentation":"Error \"data retrieval through DNS channel failed\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/techniques/dns/test.py:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}