reverse dns look-up

Discussion in 'Programming' started by daboss, Oct 24, 2006.

  1. #1
    i want to add a tool to my site that does a reverse dns lookup - i.e. you provide a domain name and the tool gives you the ip address.

    anyway to implement this without having to use a database? if a database is the only way to go, anyone know where to source for such a database?

    i'd prefer to scrape for the result using a public tool like msn search or google.

    thanks in advance.
     
    daboss, Oct 24, 2006 IP
  2. recursive

    recursive Peon

    Messages:
    18
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    do you want the reverse dns lookup- get a domain from an ip address, or regular dns lookup - get the "A record ip address" of the domain name?

    for a regular dns lookup, you can use the gethostbyname() in php
    and for the reverse lookup, gethostbyaddr()
     
    recursive, Oct 24, 2006 IP
    streety and daboss like this.
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks man - that pointed me the right way! :D
     
    daboss, Oct 25, 2006 IP