i searched without luck, so is there or could you write a script that fetches a dns lookup from a site like say http://remote.12dt.com/lookup.php ? Shouldnt be too hard
It would be easier with a socket lib.
how do i do that?
This is essentially what my IPtoCountry snippet does, though it only grabs the country code at the end of the resolved ip as that's all it cares about.
http://forum.ptokax.org/index.php?topic=6105.0
The returned data from the followup dns whois database lookup (when the IP doesn't resolve) in the snippet could be adjusted to return the name of the ISP instead of just the country code it currently gets.
thank you mutor! :D
Could this script made to work the otherway around aswell
to resolve address to ip also
Mind making a small update for me ? :)
I was just thinking about this and it would even be better to use nslookup.exe for this (if one does not mind the cmd.exe popup).
Quote from: bastya_elvtars on 02 December, 2007, 20:42:32
I was just thinking about this and it would even be better to use nslookup.exe for this (if one does not mind the cmd.exe popup).
true still i wouldnt mind a command in the ptokax since mutor already made it one ways i was simply wondering if it could be made to work the otherway around :D
well platform independent is always nice so if it could be made to rely on other dns lookup tools (web) or something else
You know sometimes I like to discuss about the language itself, the different tricks and ways to accomplish a task. The "Can you do it so it sends in PM?" is boring after a while. :)
Well that can be the downside of scripting Users like myself come in day after day requesting stuff etc. and the thing one wonders is do they really use it of just request it just because well what i request i use especially client side scripts
Can somebody convert this script to the new API? I've tried already but it doesn't work