mIRC Home    About    Download    Register    News    Help

Print Thread
#233304 02/08/11 07:07 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Since /dns queues requests if there is already one being processed it would be nice if there was an $identifier that would allow for queue looping, and a /dns switch to remove a specified entry from the queue

$dnsque(*,n[,a|i|n]) -> Returns the Nth matching entry in the DNS queue.
- If N is zero, then the total matching items is returned
- If a is specified, only hosts matching the matchtext is returned
- If i is specified, only ipaddresses matching the matchtext is returned
- If n is specified, only nicks matching the matchtext is returned

/Dns -q<iN|oN|dN> [address|ip|nick]
- if -qiN is specified then the specified address|ip|nick is inserted as the Nth item in the que
- if -qoN is specified then the Nth item in the queue is overwrote with the specified [address|ip|nick]
- if -qdN is specified the Nth item in the queue is deleted


And another thought on DNS, since DNS cache's resolved addresses, it would be nice if we could force a DNS through cache.

Last edited by FroggieDaFrog; 02/08/11 07:11 PM.

I am SReject
My Stuff
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I've never needed to do multiple /dns at once, so haven't dealt with the queue, so maybe this is a bad question. However, it comes to mind that /dns works very quickly. Finding out which item number an entry is and then try to insert/delete that item number from a second command sounds like a good way to manipulate the wrong item as previous items in the queue are completed. Of course, if you combine the two so it does the $dnsque at the same time as the /dns command, you'd avoid any possibility of that. But separately? It sounds like it's very possible to end up doing the wrong thing?

Like I said, I've never had need to worry about that queue as I only ever need one dns at a time, but that's just what came to mind.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #233306 02/08/11 07:56 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Im modifing a DNSBL script for OPERs and when netsplits reconnect or such 100+ /dns commands are being sent. As of right now I've scripted a queue for the /dns commands but I need a way to tell if there is currently a /dns request or not.

Also, The only switch for /dns I'd like to see is the -qdN so I could do away with my current /queue and be able to add|delete items from mIRC's built-in DNS queue. I added the others for the sake that someone else might need them.


I am SReject
My Stuff

Link Copied to Clipboard