mIRC Homepage
Posted By: _entropy /dns not connected to server - 31/08/21 04:02 AM
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
Posted By: Sat Re: /dns not connected to server - 31/08/21 06:33 AM
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.
Posted By: Epic Re: /dns not connected to server - 31/08/21 12:13 PM
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.

Posted By: _entropy Re: /dns not connected to server - 31/08/21 06:16 PM
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).
Posted By: Khaled Re: /dns not connected to server - 01/09/21 09:06 AM
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?
© mIRC Discussion Forums