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 am behind a corporate proxy server/firewall, and this firewall seems to not be too happy with my idea of local development. On my home computer (Mac/Leopard), I have MAMP running, with a rule in /etc/hosts that directs to, and I have a virtualhost set up in the httpd.conf file which works great for me.

However, at work, I set up the exact same configuration, but am not able to access, likely due to some address/DNS translation going on via the proxy server.

Here are the relevant details from Terminal:

$ ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.025 ms
$ host
Host not found: 3(NXDOMAIN)

I've tried adding to the list of bypass addresses in System Preferences (the 'Bypass proxy settings for these Hosts & Domains' list), but that had no effect.

Is there any way I can develop locally using name-based hosts at work? I can access localhost, but can't get to the (or any other custom virtualhosts) here at work, which complicates other matters related to the sites on which I'm working...

share|improve this question
Update: I get the (NXDOMAIN) error at home, too. However, I at lest can get an IP when I do a $host it's the DNS server, but it's something! – geerlingguy Sep 28 '10 at 15:11
Update 2: I added the OpenDNS servers to my computer at work, and now it's saying the same thing as the home computer for the host lookup... but still a no-go on loading the website. – geerlingguy Sep 28 '10 at 15:33
up vote 0 down vote accepted

Well, guess who's the village idiot? Me!

I decided to go back to the basics and see where I went wrong... turns out I had MAMP running on the MAMP default ports (8888 and 8889). Therefore, nothing worked when I went to on the default port (80).

Stupid waste of time. Oh well.

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.