egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DNS Script
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sun Nov 18, 2007 2:21 pm    Post subject: DNS Script Reply with quote

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
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sun Nov 18, 2007 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sun Nov 18, 2007 6:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sun Nov 18, 2007 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sun Nov 18, 2007 7:50 pm    Post subject: Reply with quote

yes, i did.

Quote:
#### DNS MODULE ####

loadmodule dns

Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Nov 18, 2007 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Sun Nov 18, 2007 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Sun Nov 18, 2007 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Nov 18, 2007 8:34 pm    Post subject: Reply with quote

There's a post on his forum regarding disabling some of his more ambitious "novelties". Laughing
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Amr
Halfop


Joined: 14 Sep 2007
Posts: 94
Location: Egypt

PostPosted: Mon Nov 19, 2007 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon Nov 19, 2007 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue Nov 20, 2007 4:02 am    Post subject: Reply with quote

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
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Tue Nov 20, 2007 11:59 am    Post subject: Reply with quote

You using the latest version? @DragnLord
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Nov 20, 2007 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Tue Nov 20, 2007 7:29 pm    Post subject: Reply with quote

Must of been an other script causing problems. Confused thanks for information.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber