🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78640

Re: Regarding INN - name to address resolution for peers

#78640
From: D. Stussy
Date: Tue, 05 Feb 2008 05:53
24 lines
2307 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87ejbs0ytv.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
>
> > Apparently not.  Looking at innfeed/connection.c at about line 520, it
> > looks as if it tries to connect with the first address that gets
> > returned (whether it be IPv6 or IPv4) and upon failure, it sleeps/kills
> > the connection and the subroutine exits.  It should probably loop,
> > trying ALL the addresses - in the event that the name server and/or
> > client resolvr library do not randomize nor round-robin the results.
> >
> > I'm looking at the (source of the) stable snapshot versioned as INN
2.4.4
> > dated 2008/01/01.
>
> Hm, it may be that only CURRENT has the right code for IPv6.  The IPv6
> support in CURRENT is much cleaner.

I actually noted that the code is AF independent, but that it only tries the
first address returned from the first address family returned.  Technically,
if a non-IP address family record were returned (such as from an APL record
instead of A or AAAA), that would be tried too.

Technical Details
Message-ID: <fo8uhn$o2q$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mail
References: <fnqsnb$e8h$1@snarked.org> <fo82tr$14d$1@bongo.bofh.it> <fo8pcb$nkd$1@snarked.org> <87ejbs0ytv.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <fo8uhn$o2q$1@snarked.org>
Subject: Re: Regarding INN - name to address resolution for peers
Date: Mon, 4 Feb 2008 21:53:50 -0800
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <fnqsnb$e8h$1@snarked.org> <fo82tr$14d$1@bongo.bofh.it> <fo8pcb$nkd$1@snarked.org> <87ejbs0ytv.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 24
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-160-235-237.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1202191736 24666 71.160.235.237 (5 Feb 2008 06:08:56 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Tue, 5 Feb 2008 06:08:56 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478