Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 need to re-order /etc/resolv.conf to list the nameserver provided by eth1 dhcp before the nameserver provided by eth0 dhcp on a 12.04 server (no NetworkManager).

I edited /etc/resolveconf/interface-order and replaced its 'eth*' entry with;


Then tried resolvconf -u, ifdown'ed and ifup'ed each interface, dpkg-reconfigure resolvconf, service networking restart and rebooted. None of this had any effect on the order of resolv.conf. What am I missing?

share|improve this question
up vote 4 down vote accepted

The resolvconf records have names that follow the pattern


So to force eth1* records to come before other eth* records you need to replace




After making this change, do

sudo resolvconf -u
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.