mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2015
Posts: 69
Babel fish
OP Offline
Babel fish
Joined: Aug 2015
Posts: 69
Sometimes when i run a script without being connected to the server, i get this message:

* /dns: not connected to server (line 94, dnsbl.mod)

It should ALWAYS work, regardless of being on a server or not!
While being offline, i typed:

/dns localhost
returns:
* /dns: not connected to server

and:
/dns 127.0.0.1
returns:
[23:58] * Dns resolving 127.0.0.1


mIRC Scripts IRC Network: irc://irc.mircscripts.info/chat
Joined: Apr 2004
Posts: 867
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 867
From /help /dns:

Quote
/dns [-46ch] [nick|address]

Resolves an address. If mIRC sees a "." in the name you specify it assumes it is an address and tries to resolve it. Otherwise it assumes it is a nickname and performs a /userhost to find the user's address and then resolves it.


Quote
The -h switch forces /dns to treat the parameter as a hostname.


Saturn, QuakeNet staff
Joined: Jan 2012
Posts: 216
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2012
Posts: 216
Quote
Sometimes when i run a script without being connected to the server, i get this message:
* /dns: not connected to server (line 94, dnsbl.mod)

I tested the command "/dns IP" (with different addresses) on a powered on client mIRC v7.66 that is not connected to the server and everything works.

Try to check the "(line 94, dnsbl.mod)" of your script or look at its code in full, perhaps there are some conditions created to check the connection to the server, without which it refuses to work.

You can also try to completely disable this script and try manually typing the command to check.



🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code (mIRC scripts, help, discuss, examples)
Joined: Aug 2015
Posts: 69
Babel fish
OP Offline
Babel fish
Joined: Aug 2015
Posts: 69
The DNS command that sometimes:
* /dns: not connected to server

is:
/dns -4 1.0.0.127.rbl.ircbl.org

Basically reverse the IP address (127.0.0.1 as example).

Last edited by _entropy; 31/08/21 11:34 PM.

mIRC Scripts IRC Network: irc://irc.mircscripts.info/chat
Joined: Dec 2002
Posts: 5,225
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,225
Quote
The DNS command that sometimes:
* /dns: not connected to server

is:
/dns -4 1.0.0.127.rbl.ircbl.org

I have not been able to reproduce this so far. Are you sure that something else in your script is not using /dns with the wrong parameters?


Link Copied to Clipboard