Project

General

Profile

Feature #5219

closed

[Suggestion]: $dns(N).reply to return the full reply from the DNS query

Added by westor (GR) 6 months ago. Updated 6 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
01/29/2021
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

I wanna suggest a new property .reply for $dns() that will return the full reply for a DNS queue item.

Example:

/dns 20.193.25.171.dnsbl.ahbl.org
/dns: 20.193.25.171.dnsbl.ahbl.org resolved to 20.193.25.171.dnsbl.ahbl.org (127.0.0.2,127.0.0.5,127.0.0.4,127.0.0.3)

So now the replies are 4 items (127.0.0.2,127.0.0.5,127.0.0.4,127.0.0.3)

So this code:

ON *:DNS: { echo -a IS: $dns(1) --> $dns(1).ip }

is going to reply only 1 reply

IS: 20.193.25.171.dnsbl.ahbl.org --> 127.0.0.2

What i suggesting with .reply is to get the full reply instead of only the 1

Code example:

ON *:DNS: { echo -a IS: $dns(1) --> $dns(1).reply }
IS: 20.193.25.171.dnsbl.ahbl.org --> 127.0.0.2 127.0.0.5 127.0.0.4 127.0.0.3

- Thanks!

#1

Updated by Per Amundsen 6 months ago

  • Status changed from New to Rejected

I don't see the point in this, you already have all the information available.

#2

Updated by westor (GR) 6 months ago

The point is to avoid the extra while() loop to get all the replies on $dns(N).ip

It would be nice to see that property is very useful

#3

Updated by Per Amundsen 6 months ago

You can use $loop.

Also available in: Atom PDF