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 

pub_nslookup 2.1

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rileyil77
Voice


Joined: 10 Sep 2005
Posts: 22
Location: Hamilton, AL

PostPosted: Fri Feb 06, 2009 10:18 am    Post subject: pub_nslookup 2.1 Reply with quote

pub_nslookup 2.1 TCL doesn't work with WinDrop... When I do the command:

!dns someisp.com

The Party Line comes back and says:

Tcl error [pub_nslookup]: couldn't create error file for command: no such file or directory.

I found the NSLOOKUP.EXE under WinXP Professional was in c:\windows\system32

I edited the path in script to c:\windows\system32 and got the same error... Is there a fix or TCL script for WinDrops that do the samething as pub_nslookup 2.1? Thanks in advanced. If you need more information just let me know.
_________________
John Riley
SLASHER BBS ProBoard V2.17 telnet://slasherbbs.com
or look me on Internet Radio!

http://slasherbbs.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
TCL_no_TK
Owner


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

PostPosted: Fri Feb 06, 2009 11:34 am    Post subject: Reply with quote

This can be done without the use of nslookup, using eggdrop's built in dnslookup command. My Example would be something like this:
Code:
bind pub o|o !host host:pub

proc host:pub {nick host handle channel text} {
 global host
  set addy [lindex [split $text] 0]
  set host "$channel"
  dnslookup $addy host:display
  return
}

proc host:display {ipaddress hostname status} {
 global host
  if {($ipaddress == "") || ([string match "0.*" "$ipaddress"])} {
   puthelp "PRIVMSG $host :Unable to resolve $hostname"
   return
  } else {
   puthelp "PRIVMSG $host :\002$hostname\002 has the IP Address \002$ipaddress\002"
   return
 }
}

set host ""

_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
rileyil77
Voice


Joined: 10 Sep 2005
Posts: 22
Location: Hamilton, AL

PostPosted: Sun Jun 05, 2011 6:19 pm    Post subject: Reply with quote

Sorry, I didn't even remember writing this post. Is this a TCL script, TCL_no_TK? If so, cool, I'll copy it into a TCL, if not I guess it would go into the bots config file right?
_________________
John Riley
SLASHER BBS ProBoard V2.17 telnet://slasherbbs.com
or look me on Internet Radio!

http://slasherbbs.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
uffs
Voice


Joined: 17 Apr 2008
Posts: 14
Location: 6°10.5S-106°49.7E

PostPosted: Wed Jun 15, 2011 11:21 am    Post subject: Reply with quote

wow, after 2 years Shocked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
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