This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

DNS Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
Amr
Halfop
Posts: 94
Joined: Fri Sep 14, 2007 7:13 am
Location: Egypt

DNS Script

Post by Amr »

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 ?
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

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.
User avatar
Amr
Halfop
Posts: 94
Joined: Fri Sep 14, 2007 7:13 am
Location: Egypt

Post by Amr »

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)"
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Did you load the DNS module in the .conf file ?
#### 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
User avatar
Amr
Halfop
Posts: 94
Joined: Fri Sep 14, 2007 7:13 am
Location: Egypt

Post by Amr »

yes, i did.
#### DNS MODULE ####

loadmodule dns
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

# [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.
# bind time - "00 00 *" mc:dnsb:do_svs
User avatar
Amr
Halfop
Posts: 94
Joined: Fri Sep 14, 2007 7:13 am
Location: Egypt

Post by Amr »

I enabled the script for a specified channel with that command
chanset <channel> <+/->mc.dns_bans
and i have added an ip to the ban-list by that command.
+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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

There's a post on his forum regarding disabling some of his more ambitious "novelties". :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Amr
Halfop
Posts: 94
Joined: Fri Sep 14, 2007 7:13 am
Location: Egypt

Post by Amr »

by the way my eggdrop version is 1.6.18 and it doesn't work with it.

any newer version for the script ?
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

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.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

You using the latest version? @DragnLord
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Must of been an other script causing problems. :? thanks for information.
Post Reply