mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Add support for returning non authoritative answers as packets
This commit is contained in:
parent
7cd9a0f2d2
commit
86f58e1090
1 changed files with 4 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ local function processResponse( response, dname, dtype, options )
|
|||
else
|
||||
return findNiceAnswer(dtype, rPkt, options.retAll)
|
||||
end
|
||||
else -- if not, ask the next server in authority
|
||||
elseif ( not(options.noauth) ) then -- if not, ask the next server in authority
|
||||
|
||||
local next_server = getAuthDns(rPkt)
|
||||
|
||||
|
|
@ -222,6 +222,8 @@ local function processResponse( response, dname, dtype, options )
|
|||
options.tries = options.tries - 1
|
||||
return query(dname, options)
|
||||
end
|
||||
elseif ( options.retPkt ) then
|
||||
return true, rPkt
|
||||
end
|
||||
|
||||
-- nothing worked
|
||||
|
|
@ -241,6 +243,7 @@ end
|
|||
-- * <code>retAll</code>: Return all answers, not just the first.
|
||||
-- * <code>retPkt</code>: Return the packet instead of using the answer-fetching mechanism.
|
||||
-- * <code>norecurse</code>: If true, do not set the recursion (RD) flag.
|
||||
-- * <code>noauth</code>: If true, do not try to find authoritative server
|
||||
-- * <code>multiple</code>: If true, expects multiple hosts to respond to multicast request
|
||||
-- * <code>flags</code>: numeric value to set flags in the DNS query to a specific value
|
||||
-- * <code>id</code>: numeric value to use for the DNS transaction id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue