PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: m4xx on 13 August, 2007, 19:59:07

Title: Reverse DNS lookup
Post by: m4xx on 13 August, 2007, 19:59:07
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
Title: Re: Reverse DNS lookup
Post by: bastya_elvtars on 13 August, 2007, 21:04:04
It would be easier with a socket lib.
Title: Re: Reverse DNS lookup
Post by: m4xx on 14 August, 2007, 00:50:07
how do i do that?
Title: Re: Reverse DNS lookup
Post by: Mardeg on 14 August, 2007, 12:01:31
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.
Title: Re: Reverse DNS lookup
Post by: m4xx on 15 August, 2007, 10:02:38
thank you mutor!  :D
Title: Re: Reverse DNS lookup
Post by: Toast on 02 December, 2007, 19:50:31
Could this script made to work the otherway around aswell

to resolve address to ip also
Title: Re: Reverse DNS lookup
Post by: Toast on 02 December, 2007, 20:41:29
Mind making a small update for me ? :)
Title: Re: Reverse DNS lookup
Post by: 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).
Title: Re: Reverse DNS lookup
Post by: Toast on 03 December, 2007, 06:19:43
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
Title: Re: Reverse DNS lookup
Post by: Toast on 03 December, 2007, 20:59:54
well platform independent is always nice so if it could be made to rely on other dns lookup tools (web) or something else
Title: Re: Reverse DNS lookup
Post by: bastya_elvtars on 03 December, 2007, 21:00:08
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. :)
Title: Re: Reverse DNS lookup
Post by: Toast on 03 December, 2007, 22:11:04
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
Title: Re: Reverse DNS lookup
Post by: Jusper on 13 February, 2008, 22:05:07
Can somebody convert this script to the new API? I've tried already but it doesn't work