Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Robert Elz
Date:Sat, 15 Apr 2017 20:24:45 -0700 From:John Nemeth Message-ID: <201704160324.v3g3ojwt018...@server.cornerstoneservice.ca> | There are issues with IP_PKTINFO on NetBSD, see 48166 and 48280. The missing field (48166) doesn't bother me (I did see it exists on

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Christos Zoulas
On Apr 15, 8:14pm, jnem...@cue.bc.ca (John Nemeth) wrote: -- Subject: Re: bind reacts badly to dhcpcd losing/regaining connectivity | } It is a weak copyleft license. It creates problems for us because | } it will require a lot more work to import, and cause more issues | } for redistribution

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Christos Zoulas
On Apr 16, 6:48am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: bind reacts badly to dhcpcd losing/regaining connectivity | Date:Sat, 15 Apr 2017 22:16:43 + (UTC) | From:chris...@astron.com (Christos Zoulas) | Message-ID: | | | > How is t

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread John Nemeth
On Apr 16, 8:23am, Robert Elz wrote: } } | I suspect the IP_RECVDSTADDR setsockopt() } } Actually, more probably IP_PKTINFO as that's the one named uses for IPv6. } Either would do for the purpose of determining the incoming address of a } UDP datagram, so the reply can be sent from the correc

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread John Nemeth
On Apr 15, 10:16pm, Christos Zoulas wrote: } In article <201704152047.v3fklaxz010...@server.cornerstoneservice.ca>, } John Nemeth wrote: } > } > What's wrong with the MPL? } } It is a weak copyleft license. It creates problems for us because } it will require a lot more work to import, and c

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Robert Elz
Date:Sun, 16 Apr 2017 06:48:28 +0700 From:Robert Elz Message-ID: <17026.1492300...@andromeda.noi.kre.to> | I suspect the IP_RECVDSTADDR setsockopt() Actually, more probably IP_PKTINFO as that's the one named uses for IPv6. Either would do for the purpose of determi

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Robert Elz
Date:Sat, 15 Apr 2017 22:16:43 + (UTC) From:chris...@astron.com (Christos Zoulas) Message-ID: | > How is this done in NetBSD? | | bind to INADDR_ANY I assume that what jnemeth was really asling, was how to make it work the way bind requires, and I susp

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Christos Zoulas
In article <201704152047.v3fklaxz010...@server.cornerstoneservice.ca>, John Nemeth wrote: > > What's wrong with the MPL? It is a weak copyleft license. It creates problems for us because it will require a lot more work to import, and cause more issues for redistribution. >} to add an option

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread John Nemeth
On Apr 15, 9:09am, Christos Zoulas wrote: } On Apr 15, 5:29pm, k...@munnari.oz.au (Robert Elz) wrote: } } | ps: Christos - capabilities (if we had them) would not be the answer - if you } | were to trust bind to be unhackable, then just using root would be just as } | good a solution, if you (w

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Christos Zoulas
On Apr 15, 5:29pm, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: bind reacts badly to dhcpcd losing/regaining connectivity | ps: Christos - capabilities (if we had them) would not be the answer - if you | were to trust bind to be unhackable, then just using root would be just as | good

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Robert Elz
Date:Sat, 15 Apr 2017 10:57:08 +0200 From:Rhialto Message-ID: <20170415085708.gb17...@falu.nl> | Ah, that is probably why the following attempt did not cause bind to | open a wildcard socket: | | listen-on-v6 { any; }; /* I had this one already */ |

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-15 Thread Rhialto
On Sat 15 Apr 2017 at 13:55:08 +0700, Robert Elz wrote: > Changing the bind() call is easy, fixing all the places it is assumed to > work the way it now does is harder. Ah, that is probably why the following attempt did not cause bind to open a wildcard socket: listen-on-v6 { any; }; /*

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Robert Elz
Date:Sat, 15 Apr 2017 03:06:13 + (UTC) From:chris...@astron.com (Christos Zoulas) Message-ID: | Or capabilities, or wildcard bind. That is what I meant by ... | >or to recode the | >receive code to use the new way to receive the dest addr of incoming | >

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Christos Zoulas
In article <4355.1492217...@andromeda.noi.kre.to>, Robert Elz wrote: >Date:Sat, 15 Apr 2017 01:41:17 +0200 >From:Rhialto >Message-ID: <20170414234117.ga18...@falu.nl> > > > | Why does named not succeed in using the interface when it gets an > | address again? What

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Christos Zoulas
In article <20170415005323.ga17...@falu.nl>, Rhialto wrote: >-=-=-=-=-=- > >On Fri 14 Apr 2017 at 19:20:13 -0500, Jeremy C. Reed wrote: >> On Sat, 15 Apr 2017, Rhialto wrote: >> >> > and these errors about re1 (my external interface) kept going all the >> > time. When I noticed them and restarte

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Robert Elz
Date:Sat, 15 Apr 2017 02:53:23 +0200 From:Rhialto Message-ID: <20170415005323.ga17...@falu.nl> | I also noticed the error seems to mention IPv4 only. I am not sure if it | managed to bind an IPv6 address on the same interface (and now it is too | late, unfortuna

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Robert Elz
Date:Sat, 15 Apr 2017 01:41:17 +0200 From:Rhialto Message-ID: <20170414234117.ga18...@falu.nl> | Why does named not succeed in using the interface when it gets an | address again? What to do about it? I noticed partly because my dns data | seemed to have droppe

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Rhialto
On Fri 14 Apr 2017 at 19:20:13 -0500, Jeremy C. Reed wrote: > On Sat, 15 Apr 2017, Rhialto wrote: > > > and these errors about re1 (my external interface) kept going all the > > time. When I noticed them and restarted named, they went away. > > > > Why does named not succeed in using the interfac

Re: bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Jeremy C. Reed
On Sat, 15 Apr 2017, Rhialto wrote: > and these errors about re1 (my external interface) kept going all the > time. When I noticed them and restarted named, they went away. > > Why does named not succeed in using the interface when it gets an > address again? What to do about it? I noticed partly

bind reacts badly to dhcpcd losing/regaining connectivity

2017-04-14 Thread Rhialto
About 8 days ago, my ADSL modem lost connection to the world for a bit, and then regained it. dhcpcd (6.11.3 from pkgsrc) all the while furiously re-tried to regain a lease, but when it did, named (from NetBSD 7.0.1) was broken: Apr 7 13:39:47 murthe dhcpcd[5396]: re1: DHCPv6 REPLY: no internet c