| View previous topic :: View next topic |
| Author |
Message |
Amr Halfop

Joined: 14 Sep 2007 Posts: 94 Location: Egypt
|
Posted: Sun Nov 18, 2007 2:21 pm Post subject: DNS Script |
|
|
I wanna an script that DNS users in join.
for example:
Resolved FLA1Aaf128.hrs.mesh.ad.jp to 210.147.70.128
when i add that hostname to the akick list of the bot *!*@210.147.70.*
when someone enter the channel with a hostname of FLA1Aaf128.hrs.mesh.ad.jp. bot won't kickban him, so i wanna make my bot kickban him.
any idea ? |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Sun Nov 18, 2007 2:34 pm Post subject: |
|
|
DNS Bans v1.3.2 by Carl M. Gregory at http://mc.purehype.net/index.tcl?info=DNS+Bans
By the way, in the network i use, Undernet, banning the numerical IP will ban any host that match that IP, which is your case here, dont need a script for that. But in the other hand, banning the host, wont ban the numerical IP. That s why i use this script. |
|
| Back to top |
|
 |
Amr Halfop

Joined: 14 Sep 2007 Posts: 94 Location: Egypt
|
Posted: Sun Nov 18, 2007 6:39 pm Post subject: |
|
|
I got that error after loading the script.
.set errorInfo
[00:38] # set errorInfo
Currently: DNS lookup failed
Currently: while executing
Currently: "connect $mc_dnsb(svs:server) $mc_dnsb(svs:port)" |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Sun Nov 18, 2007 7:47 pm Post subject: |
|
|
Did you load the DNS module in the .conf file ?
| Quote: |
#### DNS MODULE ####
# This module provides asynchronous dns support. This will avoid long
# periods where the bot just hangs there, waiting for a hostname to
# resolve, which will often let it timeout on all other connections.
loadmodule dns |
|
|
| Back to top |
|
 |
Amr Halfop

Joined: 14 Sep 2007 Posts: 94 Location: Egypt
|
Posted: Sun Nov 18, 2007 7:50 pm Post subject: |
|
|
yes, i did.
| Quote: | #### DNS MODULE ####
loadmodule dns
|
|
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Nov 18, 2007 7:56 pm Post subject: |
|
|
connect $mc_dnsb(svs:server) $mc_dnsb(svs:port)"
AFAIK, mc8's svs server is no longer functional, so the script can't "phone home" - which I would disable anyway. |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Sun Nov 18, 2007 8:18 pm Post subject: |
|
|
| Quote: | # [0=no/1=yes] Do you want to enable auto updating? If you chose to
# disable auto updating, it will not automatically update the script
# upon finding a newer version.
set mc_dnsb(:config:svs:enable) 0 |
Also, comment this line so the script will not try to connect to the server each day at midnight.
| Quote: | | # bind time - "00 00 *" mc:dnsb:do_svs |
|
|
| Back to top |
|
 |
Amr Halfop

Joined: 14 Sep 2007 Posts: 94 Location: Egypt
|
Posted: Sun Nov 18, 2007 8:32 pm Post subject: |
|
|
I enabled the script for a specified channel with that command
| Quote: | | chanset <channel> <+/->mc.dns_bans |
and i have added an ip to the ban-list by that command.
| Quote: | | +ban <hostmask> [channel] [%<XdXhXm>] [comment] |
but when someone enters the channel with hostname resolved to the ip i had added, bot doesn't kickban him. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Nov 18, 2007 8:34 pm Post subject: |
|
|
There's a post on his forum regarding disabling some of his more ambitious "novelties".  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Amr Halfop

Joined: 14 Sep 2007 Posts: 94 Location: Egypt
|
Posted: Mon Nov 19, 2007 4:26 am Post subject: |
|
|
by the way my eggdrop version is 1.6.18 and it doesn't work with it.
any newer version for the script ? |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Mon Nov 19, 2007 6:06 am Post subject: |
|
|
I haven't been able to get this to work on eggdrop versions 1.6.17+ including cvs versions. It could be it needs a little fixing to make it work, or there have been some issues with parts of the code not being the same as it was when this script was wrote. If i find the time too, i'll try to see if i can fix this script or at least find out whats wrong with it. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue Nov 20, 2007 4:02 am Post subject: |
|
|
| Amr wrote: | by the way my eggdrop version is 1.6.18 and it doesn't work with it.
any newer version for the script ? | this script works on the 1.6.17, 1.6.18, and 1.7.0 eggdrops I have running |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Tue Nov 20, 2007 11:59 am Post subject: |
|
|
You using the latest version? @DragnLord _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Nov 20, 2007 6:46 pm Post subject: |
|
|
| DragnLord wrote: | | Amr wrote: | by the way my eggdrop version is 1.6.18 and it doesn't work with it.
any newer version for the script ? | this script works on the 1.6.17, 1.6.18, and 1.7.0 eggdrops I have running |
I have tested this script myself after AutoCross (Amr) told me about it on DALnet and the MC_8 script does not function as expected.
The last time I actually used this script was 4 years ago and it did work back then.
Not one error is generated. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Tue Nov 20, 2007 7:29 pm Post subject: |
|
|
Must of been an other script causing problems. thanks for information. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
|