Author Topic: Reverse DNS lookup  (Read 7513 times)

0 Members and 1 Guest are viewing this topic.

Offline m4xx

  • Junior Member
  • **
  • Posts: 24
  • Karma: +3/-0
Reverse DNS lookup
« 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

PtokaX forum

Reverse DNS lookup
« on: 13 August, 2007, 19:59:07 »

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Reverse DNS lookup
« Reply #1 on: 13 August, 2007, 21:04:04 »
It would be easier with a socket lib.
Everything could have been anything else and it would have just as much meaning.

Offline m4xx

  • Junior Member
  • **
  • Posts: 24
  • Karma: +3/-0
Re: Reverse DNS lookup
« Reply #2 on: 14 August, 2007, 00:50:07 »
how do i do that?

Offline Mardeg

  • Forum Ace
  • *****
  • Posts: 75
  • Karma: +7/-1
    • The most bloated human-readable email hider in the world!
Re: Reverse DNS lookup
« Reply #3 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.

Offline m4xx

  • Junior Member
  • **
  • Posts: 24
  • Karma: +3/-0
Re: Reverse DNS lookup
« Reply #4 on: 15 August, 2007, 10:02:38 »
thank you mutor!  :D

Toast

  • Guest
Re: Reverse DNS lookup
« Reply #5 on: 02 December, 2007, 19:50:31 »
Could this script made to work the otherway around aswell

to resolve address to ip also

Toast

  • Guest
Re: Reverse DNS lookup
« Reply #6 on: 02 December, 2007, 20:41:29 »
Mind making a small update for me ? :)

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Reverse DNS lookup
« Reply #7 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).
Everything could have been anything else and it would have just as much meaning.

Toast

  • Guest
Re: Reverse DNS lookup
« Reply #8 on: 03 December, 2007, 06:19:43 »
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

Toast

  • Guest
Re: Reverse DNS lookup
« Reply #9 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

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Reverse DNS lookup
« Reply #10 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. :)
Everything could have been anything else and it would have just as much meaning.

Toast

  • Guest
Re: Reverse DNS lookup
« Reply #11 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

Offline Jusper

  • Junior Member
  • **
  • Posts: 18
  • Karma: +11/-1
Re: Reverse DNS lookup
« Reply #12 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

PtokaX forum

Re: Reverse DNS lookup
« Reply #12 on: 13 February, 2008, 22:05:07 »