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.
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()