Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had a working configuration this morning with the following simple /etc/rc.conf /etc/resolv.conf is completely commented out.

ifconfig_xl="inet netmask 255.255.255."


I added the following lines:



restarted the computer and no connectivity, changed rc.conf back to last working configuration and still no connectivity.

#--> ping: cannot resolve Host name lookup failure

ping # --> (works fine)

apachectl start
#--> /usr/local/sbin/apachectl start: httpd could not be started

#--> connection timed out

#--> connnection timed out; no servers could be reached

I also used /etc/rc.d/routing restart between the working state and the broken state

share|improve this question
Try dig and post the output. It sounds like a DNS problem. – BenjiWiebe Oct 18 '13 at 21:00
Now how about output from nslookup – BenjiWiebe Oct 18 '13 at 21:09
Wait... /etc/resolv.conf is empty? Or at least, it has no nameservers? – BenjiWiebe Oct 18 '13 at 21:22
Yeah, I thought it was working when empty this morning, but maybe not? – shupru Oct 18 '13 at 21:22
I doubt it. AFAIK, /etc/resolv.conf needs to be populated. – BenjiWiebe Oct 18 '13 at 21:25

1 Answer 1

up vote 0 down vote accepted

I think your problem is that /etc/resolv.conf is empty. Try putting the following in it (to use Google's public DNS servers):


That should work.

share|improve this answer
Try apachectl status. That sounds like a completely different problem, and may need its own question. – BenjiWiebe Oct 18 '13 at 21:39
Probably would be a good idea. Especially the part about accepting my answer. :D – BenjiWiebe Oct 18 '13 at 21:40
I'll post a new one, but here is (part of) the output unable to connect to remote host. – shupru Oct 18 '13 at 21:42
I'll take a look at your new question, there is a chance I will be able to answer it. – BenjiWiebe Oct 18 '13 at 21:44
Why don't you put a link in a comment here so when I come back later I can look at the question? – BenjiWiebe Oct 18 '13 at 21:45

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.