Re: resolv.conf with dhcp when upgrading with bsd.rd
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. -- Ossi Herrala
Re: resolv.conf with dhcp when upgrading with bsd.rd
On Wed, August 3, 2016 5:07 pm, Solène Rapenne wrote: > 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. > You can drop to the shell any time with ! Modify your resolv.conf after it brings up the network interface. Or learn your mirrors's IP address. Tim.
Re: resolv.conf with dhcp when upgrading with bsd.rd
Le 2016-08-01 14:57, j...@wxcvbn.org a écrit : Solène RAPENNE writes: Hello, Using -current with unbound as a local dns resolver. dhclient.conf is set to supersede the dhcp nameserver to use my unbound server /etc/dhclient.conf send host-name "solene"; supersede domain-name-servers 127.0.0.1; 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 ? Not a direct response to your question, but what I do is use "prepend" instead of "supersede". If it's not possible or too complicated, is there a better way than downloading the packages in the same time I download bsd.rd and not use network during the upgrade ? Regards Hello, I think I'll go to this solution, with a timeout set to a few seconds so it doesn't hang too long if it has no result. regards
Re: resolv.conf with dhcp when upgrading with bsd.rd
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.
Re: resolv.conf with dhcp when upgrading with bsd.rd
Solène RAPENNE writes: > Hello, > > Using -current with unbound as a local dns resolver. dhclient.conf is > set to supersede the dhcp nameserver to use my unbound server > > /etc/dhclient.conf > send host-name "solene"; > supersede domain-name-servers 127.0.0.1; > > 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 ? Not a direct response to your question, but what I do is use "prepend" instead of "supersede". > If it's not possible or too complicated, is there a better way than > downloading the packages in the same time I download bsd.rd and not use > network during the upgrade ? > > > Regards > -- jca | PGP: 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
Re: resolv.conf with dhcp when upgrading with bsd.rd
On Mon, Aug 01, 2016 at 01:14:27PM BST, Solène RAPENNE wrote: > Hello, > > Using -current with unbound as a local dns resolver. dhclient.conf is set to > supersede the dhcp nameserver to use my unbound server > > /etc/dhclient.conf > send host-name "solene"; > supersede domain-name-servers 127.0.0.1; > > 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 ? > > If it's not possible or too complicated, is there a better way than > downloading the packages in the same time I download bsd.rd and not use > network during the upgrade ? Yep - simply download the sets before and use 'disk' instead of 'http'. http://marc.info/?l=openbsd-misc&m=141552533922277 and something like this before you put the ramdisk back: SETSDIR=/path/to/directory/with/sets echo "Location of sets = disk Is the disk partition already mounted = yes Pathname to the sets = $SETSDIR" > /mnt/auto_upgrade.conf I've been using a home-grown script based on the above for over a year with snapshots - and it works just fine. Regards, Raf
resolv.conf with dhcp when upgrading with bsd.rd
Hello, Using -current with unbound as a local dns resolver. dhclient.conf is set to supersede the dhcp nameserver to use my unbound server /etc/dhclient.conf send host-name "solene"; supersede domain-name-servers 127.0.0.1; 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 ? If it's not possible or too complicated, is there a better way than downloading the packages in the same time I download bsd.rd and not use network during the upgrade ? Regards