Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to add an additional DNS entry in my OSX network preferences but I want to keep the DNS provided by DHCP. These show up in gray, but when I click the plus button below them, they disappear to make way for the user-provided DNS. So it seems I can only have either static entries or DHCP entries but not both. Is there some way I can accomplish this by changing settings in a .conf file somewhere perhaps?

share|improve this question

1 Answer 1

Since Mac OS X 10.6.3 you computer keeps a list of all DNS servers it has ever seen and automatically picks the fastest one for you. So you can simply add the new one and be happy with it, as your Mac will remember the ones provided by DHCP. If you want to define a strict order after which Mac OS does it´s lookups, best follow this how-to.

Additionally, to see the current DNS search order (and search domains), run: scutil --dns from the Terminal. Or, to quickly check which DNS server you are actually currently using, run for example nslookup apple.com.

share|improve this answer
1  
Thanks, these utils are very useful! But I didn't see the behavior you describe. Running scutil --dns before and after I change the DNS settings away from the DHCP-provided servers seems to show that it does not keep the DHCP-provided DNS servers after I add manual DNS of my own. –  Carl Youngblood Aug 22 '11 at 12:29

Your Answer

 
discard

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.