Ask Different is a question and answer site for power users of Apple hardware and software. 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 running OSX Lion.

I've looked all over the web for solutions to the issue I'm having and can't find a fix. I've found several entries where uses are trying to resolve (etc, etc), but I'm actually trying to use the search domains for FQDN. I do not have access to the DNS systems, so my system is assigned some DNS server IPs, but I have to manually set all the search domains for some of the hosts. For example:


Let's say host mytesthost is in I would have expected that when I type in mytesthost, that it would search the search domains and resolve an IP, however, in order for this to work, I actually have to type in

The "error" I get is "unknown host", which tells me that it is not resolving the hostname.

Any thoughts?

share|improve this question

The domains in the search directive should be separated by whitespace only, not commas. So replace




and try it again. Note that in general it is better supported if you set these things up via System Preferences and then you don't get syntax problems like this.

System Preferences -> Network -> [Select the interface from the list on the left] -> Advanced... -> DNS -> Search Domains:

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.