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

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'm running Mac OS X (wired connection) and on a really crappy ISP. Because of this I've set my DNS servers to use OpenDNS, which is generally much more responsive. However, for some reason is at the top of my DNS search order (confirmed via /etc/resolv.conf and nslookup). The problem is that it's not listed anywhere in my network configuration. It might be coming from DHCP, but I've read that if it is it should be last in the list. How do I remove this altogether, or at the very least force Mac OS X to always try it last?

Additional Information:

Very strange. When I go into System Preferences, only the OpenDNS servers are listed. I've checked every adapter listed, whether they are enabled or not (including Bluetooth, Firewire, etc.). When I run networksetup -getdnsservers Ethernet it only returns the OpenDNS servers.

However if I cat /etc/resolv.conf I get


And nslookup gives me:

> server
Default server:
Default server:
Default server:

When I look something up in nslookup it sometimes responds with and sometimes with an OpenDNS server. And sometimes it times out completely due to my aforementioned crappy ISP.

share|improve this question
Well it's probably from DHCP. Check setting on your router. Best way to solve this would be to set your router to use OpenDNS servers directly and let computers use your router as relay. – AndrejaKo Aug 5 '10 at 11:53
It's a shared internet connection in my building. I don't have access to the router's DHCP settings. – ggutenberg Aug 5 '10 at 12:23
up vote 1 down vote accepted

How did you set your DNS to use OpenDNS?

In the Network preference pane in System Preferences, if you click Advanced... on your Airport and go to the DNS tab: What is the order that appears there? Is in grey or black?

If the IP address is black it's been manually entered, if it's grey it came via DHCP. You can also drag and drop entries to change the order as necessary. /etc/resolv.conf is auto generated from these settings so changing /etc/resolv.conf won't stick. If you want to set the DNS servers and manage them from the command line, check out networksetup. (eg. networksetup -getalldnsservers AirPort)

share|improve this answer
Added some additional information to the post in answer to your questions. Still not sure what's going on though. – ggutenberg Aug 5 '10 at 15:39
@dosboy: Which version of Mac OS X specifically and have you restarted recently? – Chealion Aug 5 '10 at 15:41
10.6.4. Just rebooted, and everything is exactly the same. No changes. – ggutenberg Aug 5 '10 at 15:58
Just for clarification, right after you edit your DNS settings in System Preferences and hit Apply - if you check resolv.conf has been added yet? – Chealion Aug 5 '10 at 16:12
Actually, that doesn't seem to update resolv.conf at all. I just removed and hit Apply, and my resolv.conf still had all 3 entries in it. – ggutenberg Aug 5 '10 at 16:17

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.