Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PHP script in a Mediatemple (dv) server that uses cURL to post data to a remote website. This remote website also resides in a (dv) server and doesn't have a domain name yet. I can only access it through web preview.

I'm planning to edit the hosts file of the first server so it can do cURL. Is this even possible?

Suggestions will be appreciated.

share|improve this question
up vote 1 down vote accepted

If the remote server is on an accessible IP (hopefully static or non-changing), then adding it to the host file will allow it to be accessible via a DNS-like means on that server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.