getaddrinfo()-related replication problem on FreeBSD

Andrew Bartlett abartlet at samba.org
Mon Jun 4 18:43:47 MDT 2012


On Mon, 2012-06-04 at 20:30 -0400, Scott Lovenberg wrote:
> On Mon, Jun 4, 2012 at 8:21 PM, Andrew Bartlett <abartlet at samba.org> wrote:
> 
> > On Mon, 2012-06-04 at 20:17 -0400, Scott Lovenberg wrote:
> > >
> > >
> > >         It seems a very deliberate policy decision then.  I guess we
> > >         may just
> > >         have to blacklist FreeBSD on this point then.
> > >
> > >
> > >  Forgive my ignorance, but isn't this the nuclear option?  Is there a
> > > more reasonable option?
> >
> > I don't see a more reasonable option at this point.  We simply can't use
> > the getaddrinfo() call on this platform.  If we really wanted to refine
> > it, we could start searching for _ i the name before we looked it up,
> > but then we really do get down special-case codepaths.
> >
> That sounds like a losing proposition.  I understand your position.

The attached patch would (probably) do it, but then some poor developer
not on FreeBSD will spend hours later debugging why a bug (or non-use of
a cache etc) only happens for names including a _.

I know these are 'banned' in DNS, but I strongly object to the client OS
being the arbiter of good taste in network naming. 

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120605/0bc1071d/attachment.bin>


More information about the samba-technical mailing list