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

What is the difference between the two?

I had thought that domain-name would put the client on the specified domain (ie. If the domain-name was set to "" the clients FQDN would be ''), but seems to imply that both options simply specify a search domain.

If domain-name does not set the domain for the client, what option would?

share|improve this question
up vote 8 down vote accepted

The domain-name option specifies the client's domain name (of which there can only be one), and is specified in resolv.conf with the domain keyword. This is the domain which will be used when running hostname -f on the client.

The domain-search option specifies a list of domains to use when looking up bare hostnames, and is specified in resolv.conf with the search keyword. If this option isn't provided it defaults to the single domain provided by domain-name.

share|improve this answer
Thank you for the answer, though I question why you downvoted me. – Rauffle Feb 14 '13 at 18:51
@Rauffle Why do you assume that I downvoted you? (I didn't.) – mgorven Feb 14 '13 at 19:11
In one increment of the viewed count I got an answer and a downvote. My apologies if you didn't, though it was quite coincidental..:) – Rauffle Feb 14 '13 at 20:11

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.