Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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;

eth1
eth0

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

1 Answer 1

up vote 2 down vote accepted

The resolvconf records have names that follow the pattern

IFACE.CONFIGURER

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

eth*

with

eth1*
eth*

After making this change, do

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