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

/etc/resolv.conf is dynamically generated from the contents of /etc/network/interfaces, which on my system contains a line like this:


How do I include the default search domain with this configuration? If it matters, I'm running a pure Ubuntu Server configuration, with no X server installed.

share|improve this question
@womble the edit changed the meaning of the question. – Arthur Ulfeldt Aug 7 '12 at 0:04
You really don't need all the mentions of 12.04. Resolvconf has worked the same way for more then 5 years. – Zoredache Aug 7 '12 at 0:09
up vote 12 down vote accepted

Since you seem to be using resolvconf, you will want to use the dns-search option within your network interfaces file

# The primary network interface
auto eth0
iface eth0 inet static
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.