I use resolvconf to have static DNS servers set in
/etc/resolv.conf. However, when I run
sudo resolvconf -u to update
/etc/resolv.conf with new static information, I get the error 'resolvconf: Error: /etc/resolv.conf must be a symlink'. How can I fix this?
As of Ubuntu 12.04 resolvconf is part of the base system. You can recreate the needed symlink by running
or by doing the following in a terminal.
sudo ln -nsf ../run/resolvconf/resolv.conf /etc/resolv.conf
Note that as of Ubuntu 12.10 resolvconf no longer aborts if /etc/resolv.conf is not a symlink. It does print a warning message, but this can be silenced by putting the line