I have a domain pointer (example.com) to a second domain (example.es) and I would like to know from wich domain I come from.
Is it possible to do it with PHP?
Yes, look at $_SERVER['HTTP_HOST']
Moved from DNS to PHP forum.
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:
Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts