Le 2016-08-03 22:11, Ossi Herrala a écrit :
On Mon, Aug 01, 2016 at 02:14:27PM +0200, Solène RAPENNE wrote:
When upgrading with bsd.rd, dhclient will use this dhclient.conf with
unbound stopped, the system won't resolve names and won't download
packages
through http.
How can I use dhcp and keep 127.0.0.1 as domain name server except if
I'm
using bsd.rd ?
^Z out from the installer (or use the shell before entering upgrade)
then
echo "nameserver 8.8.8.8" >>/etc/resolv.conf
and fg back to installer. Substitute 8.8.8.8 with your preferred DNS.
Good idea, but it would be even better to use > instead of >> because
it's a temporary /etc/resolv.conf.
I didn't think about ^Z, I dropped to shell then re-run the installer
but it rerun dhcp and the changes were overwrited.