Index: nselib/dns.lua =================================================================== --- nselib/dns.lua (revision 26521) +++ nselib/dns.lua (working copy) @@ -370,7 +370,7 @@ answerFetcher[types.TXT] = function(dec, retAll) local answers = {} if not retAll and dec.answers[1].data then - return string.sub(dec.answers[1].data, 2) + return true, string.sub(dec.answers[1].data, 2) elseif not retAll then stdnse.print_debug(1, "dns.answerFetcher found no records of the required type: TXT") return false, "No Answers" @@ -599,7 +599,7 @@ additionalFetcher[types.TXT] = function(dec, retAll) local answers = {} if not retAll and dec.add[1].data then - return string.sub(dec.add[1].data, 2) + return true, string.sub(dec.add[1].data, 2) elseif not retAll then stdnse.print_debug(1, "dns.aditionalFetcher found no records of the required type: TXT") return false, "No Answers" Index: scripts/asn-query.nse =================================================================== --- scripts/asn-query.nse (revision 26521) +++ scripts/asn-query.nse (working copy) @@ -287,8 +287,8 @@ -- send query local query = ( "AS%s.asn.cymru.com" ):format( asn ) - local decoded_response, other_response = dns.query( query, options) - if type( decoded_response ) ~= "string" then + local status, decoded_response = dns.query( query, options ) + if not status then return "" end