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.

pub_nslookup 2.1

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rileyil77
Voice
Posts: 22
Joined: Sat Sep 10, 2005 2:30 pm
Location: Hamilton, AL
Contact:

pub_nslookup 2.1

Post by rileyil77 »

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.22 telnet://slasherbbs.com
or look me on Internet Radio!

http://slasherbbs.com
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

This can be done without the use of nslookup, using eggdrop's built in dnslookup command. My Example would be something like this:

Code: Select all

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 ""
User avatar
rileyil77
Voice
Posts: 22
Joined: Sat Sep 10, 2005 2:30 pm
Location: Hamilton, AL
Contact:

Post by rileyil77 »

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.22 telnet://slasherbbs.com
or look me on Internet Radio!

http://slasherbbs.com
u
uffs
Voice
Posts: 14
Joined: Thu Apr 17, 2008 9:18 pm
Location: 6°10.5S-106°49.7E

Post by uffs »

wow, after 2 years :shock:
Post Reply