Use remote_addr() function to return the dotted IP address of the remote host.
Go see the CGI author's website at
HTTP Session Variables Be sure to scroll to the top for the full table of contents!
I'm not sure how to capture DNS info. If you want to look someone up, just use a WHOIS portal like www.networksolutions.com, find the domain's registrar site, and go look them up there.
..:::::: aquacade ::::::..