Re: temporary DNS lookup in php?
| From: | Marek Kilimajer | Date: | Thu, 16 Jan 2003 11:00:59 +0000 |
| Subject: | Re: temporary DNS lookup in php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131842@lists.php.net to get a copy of this message | ||
I'm not sure if I understand you, but you can simply specify IP address and correct Host header
Patrick Hsieh wrote:
Hello list, I am trying to open a remote webpage in my php program with curl library. The webpage will redirect me to another webpage(Say, "http://www.anothersite.com/index.html"). Basically, the curl library will resolve the domain name via the DNS servers defined in the system, however, I hope I can customized the temporary DNS lookup in the php program for special purpose without modifying the /etc/resolv.conf or other system configuration files. Is it possible? How?