Project

General

Profile

Actions

Feature #5219

closed

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

Added by westor (GR) about 3 years ago. Updated about 3 years 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!

Actions #1

Updated by Per Amundsen about 3 years ago

  • Status changed from New to Rejected

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

Actions #2

Updated by westor (GR) about 3 years 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

Actions #3

Updated by Per Amundsen about 3 years ago

You can use $loop.

Actions

Also available in: Atom PDF