mIRC Home    About    Download    Register    News    Help

Print Thread
/dns not connected to server #269329 31/08/21 04:02 AM
Joined: Aug 2015
Posts: 59
_entropy Offline OP
Babel fish
OP Offline
Babel fish
Joined: Aug 2015
Posts: 59
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.net/chat
Re: /dns not connected to server [Re: _entropy] #269330 31/08/21 06:33 AM
Joined: Apr 2004
Posts: 862
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 862
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
Re: /dns not connected to server [Re: _entropy] #269331 31/08/21 12:13 PM
Joined: Jan 2012
Posts: 173
Epic Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2012
Posts: 173
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.



πŸ…ΈπŸ†πŸ…² - 𝔦'𝔱𝔰 𝔸 π•‚π–ŽΙ΄π™™ ᴏ𝙛 π•„π™–π–Œπ™žπ™˜
Re: /dns not connected to server [Re: _entropy] #269332 31/08/21 06:16 PM
Joined: Aug 2015
Posts: 59
_entropy Offline OP
Babel fish
OP Offline
Babel fish
Joined: Aug 2015
Posts: 59
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.net/chat
Re: /dns not connected to server [Re: _entropy] #269336 01/09/21 09:06 AM
Joined: Dec 2002
Posts: 5,002
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,002
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?