Re: dhclient expects IPv4 address in dhclient.conf
On Thu, May 03, 2018 at 12:05:40PM +0200, Paul de Weerd wrote: > Stick a v6 recursor in /etc/resolv.conf.tail. When dhclient updates > /etc/resolv.conf, it'll append the contents of /etc/resolv.conf.tail > to it and you will have your v6 resolver availble that way. You could > even ignore the v4 nameserver and use your manually configured > nameservers only. See resolv.conf(5). > > The only thing I don't think is possible with base tools is having > your v6 recursor listed *before* the dhcp offered recursor. > > Cheers, > > Paul 'WEiRD' de Weerd Thank you for your answers. Actually, i would like to keep them as backup, when doing upgrades or the bind package is not working as expected. I will take a deeper dive into resolv.conf to have a look. I thought, that an /etc/resolv.conf.head file would do the trick, but it seems to be ignored on OpenBSD.
Re: dhclient expects IPv4 address in dhclient.conf
On Thu, May 03, 2018 at 10:44:18AM +0200, Marc Peters wrote: | On Thu, May 03, 2018 at 10:31:27AM +0200, Janne Johansson wrote: | >Since manpage doesn't mention v6 namespace at all, I'd wager you would | >have to | >run something else to pick up v6 resolvers. | | Yeah, that's right. Maybe, i stick to v4 resolvers for now or add it by | hand, when i reboot it. Stick a v6 recursor in /etc/resolv.conf.tail. When dhclient updates /etc/resolv.conf, it'll append the contents of /etc/resolv.conf.tail to it and you will have your v6 resolver availble that way. You could even ignore the v4 nameserver and use your manually configured nameservers only. See resolv.conf(5). The only thing I don't think is possible with base tools is having your v6 recursor listed *before* the dhcp offered recursor. Cheers, Paul 'WEiRD' de Weerd -- >[<++>-]<+++.>+++[<-->-]<.>+++[<+ +++>-]<.>++[<>-]<+.--.[-] http://www.weirdnet.nl/
Re: dhclient expects IPv4 address in dhclient.conf
On Thu, May 03, 2018 at 10:31:27AM +0200, Janne Johansson wrote: >Since manpage doesn't mention v6 namespace at all, I'd wager you would >have to >run something else to pick up v6 resolvers. Yeah, that's right. Maybe, i stick to v4 resolvers for now or add it by hand, when i reboot it.
Re: dhclient expects IPv4 address in dhclient.conf
2018-05-02 18:07 GMT+02:00 Marc Peters: > On Wed, May 02, 2018 at 04:24:50PM +0200, Janne Johansson wrote: > > Seems common on other dhcpd's too: > > https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html > > > > ah, the option has a different name for IPv6 nameservers. Does the base > dhclient recognize these different options, or do i have to give > isc-dhcp-client a try for this? > Since manpage doesn't mention v6 namespace at all, I'd wager you would have to run something else to pick up v6 resolvers. -- May the most significant bit of your life be positive.
Re: dhclient expects IPv4 address in dhclient.conf
On Wed, May 02, 2018 at 04:24:50PM +0200, Janne Johansson wrote: > Seems common on other dhcpd's too: > https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html > ah, the option has a different name for IPv6 nameservers. Does the base dhclient recognize these different options, or do i have to give isc-dhcp-client a try for this?
Re: dhclient expects IPv4 address in dhclient.conf
Am 2. Mai 2018 16:24:50 MESZ schrieb Janne Johansson: >2018-05-02 16:06 GMT+02:00 Marc Peters : > >> Hi misc, >> dhclient hates me. I would like to prepend an IPv6 nameserver in the >> dhclient configuration on my router when connecting to my ISP, but >> dhclient gives me following error: >> >> em1: /etc/dhclient.conf line 17: expecting IPv4 address. >> em1: prepend domain-name-servers "::1" >> em1: ^ >> dhclient.conf ist plain simple: >> ~ $ grep -v "#" /etc/dhclient.conf >> >> supersede host-name "router"; >> >> prepend domain-name-servers 127.0.0.1; >> >> prepend domain-name-servers "::1"; >> >> Is this intended? >> >> >Seems common on other dhcpd's too: >https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html This looks like a server issue and fixed in the meantime, otherwise the Windows Clients won't get any v6 nameservers, as they don't get it from the RAs. My issue is with dhclient setting something in /etc/resolve.conf. -- Sent from my cell phone
Re: dhclient expects IPv4 address in dhclient.conf
2018-05-02 16:06 GMT+02:00 Marc Peters: > Hi misc, > dhclient hates me. I would like to prepend an IPv6 nameserver in the > dhclient configuration on my router when connecting to my ISP, but > dhclient gives me following error: > > em1: /etc/dhclient.conf line 17: expecting IPv4 address. > em1: prepend domain-name-servers "::1" > em1: ^ > dhclient.conf ist plain simple: > ~ $ grep -v "#" /etc/dhclient.conf > > supersede host-name "router"; > > prepend domain-name-servers 127.0.0.1; > > prepend domain-name-servers "::1"; > > Is this intended? > > Seems common on other dhcpd's too: https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html -- May the most significant bit of your life be positive.