Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

dns-servers 8.8.8.8

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

1 Answer 1

up vote 11 down vote accepted

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

#/etc/network/interfaces 
# The primary network interface
auto eth0
iface eth0 inet static
    address 10.2.37.4
    netmask 255.255.254.0
    gateway 10.2.37.1
    dns-nameservers 10.2.51.4 10.2.52.4
    dns-search example.org
share|improve this answer

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.