🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Curt Welch Fri, 24 Mar 2000 00:00
Xref: host name not matching server name
#45217
Author: Curt Welch
Date: Fri, 24 Mar 2000 00:00
28 lines
1938 bytes
Can anybody give me any data on how newsreaders are processing Xref:
lines these days?

On my server, the host name listed on the Xref: is the host that
generated the line, not the host that the users are reading news
from.  Is that likely to cause problems with some newsreaders?

The intend of the host being there was so newsreader could tell if
the line was actually generated on the local host.  So if the host
name didn't match, the newsreader should assume the data isn't
valid for the local host.  But do any newsreaders actually do that?

Or do that just tend to igore the host name and assume the data is
valud for the local host?

And on servers like Cyclone/Typhoon running in Xref slave mode, what
host name ends up being on the Xref: line?  The host of the Cyclone
box or the reader, or what?

I can put a hack in the server to make it modify the host name on the
Xref: line so it matches the reader box, but I wanted to know if this
was actually needed.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Xref: host name not matching server name
#45225
Author: Blackened Cajun Fluffy
Date: Sat, 25 Mar 2000 00:00
18 lines
1776 bytes
In news.software.nntp, Jeremy <bofh@netscum.dk> wrote:

[Consistency in Xref: hostnames]

> I can't imagine that it would be necessary.  Just as an example, if it
> mattered, what would happen if a user specified the IP address rather
> than the DNS name, or used a different name for the server that happened
> Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Actually, RFC1036 specifies that Xref will have an _unqualified_
hostname [in 2.2.13], so anyone looking for standard behavior couldn't
rely on this to be a unique identifier anyway (just consider all the
bazillions of swervers with the hostname "news").

That field can serve as a debugging aid, but for the most part it's
really superfluous.

Re: Xref: host name not matching server name
#45238
Author: Jeremy
Date: Sat, 25 Mar 2000 00:00
32 lines
1964 bytes
Curt Welch <curt@kcwc.com> wrote:

> On my server, the host name listed on the Xref: is the host that
> generated the line, not the host that the users are reading news
> from.  Is that likely to cause problems with some newsreaders?

I haven't heard of any particular problems here.  Which isn't to say
there aren't any, but our system has been doing the same thing forever
and no one has screamed.

> And on servers like Cyclone/Typhoon running in Xref slave mode, what
> host name ends up being on the Xref: line?  The host of the Cyclone
> box or the reader, or what?

The reader sees the Xref header exactly as the Cyclone box created it,
which will have the Cyclone system's path-stamp on it -- not even
necessarily a valid hostname at all, let alone the same as the one
the newsreader is using.

> I can put a hack in the server to make it modify the host name on the
> Xref: line so it matches the reader box, but I wanted to know if this
> was actually needed.

I can't imagine that it would be necessary.  Just as an example, if it
mattered, what would happen if a user specified the IP address rather
than the DNS name, or used a different name for the server that happened
to resove to the same address?  (Like, qualified versus unqualified?)

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: Xref: host name not matching server name
#45290
Author: Curt Welch
Date: Mon, 27 Mar 2000 00:00
56 lines
3603 bytes
Jeremy <bofh@netscum.dk> wrote:
> Curt Welch <curt@kcwc.com> wrote:
>
> > On my server, the host name listed on the Xref: is the host that
> > generated the line, not the host that the users are reading news
> > from.  Is that likely to cause problems with some newsreaders?
>
> I haven't heard of any particular problems here.  Which isn't to say
> there aren't any, but our system has been doing the same thing forever
> and no one has screamed.

You wouldn't expect to hear much because the typical problem it would cause
is to not correctly mark cross posted articles as read in all the groups.
Lots of users don't even know that newsreaders should do this, and even if
they noticed the newsreader didn't do it, they aren't likely to blame the
news server for the problem.

If the newsreader dose the host name checking, all it means is that the
reader would think the Xref: was invalid, and treat the artlicle like it
didn't have an Xref: header.  And since there's no real guarantee that an
article will have a valid Xref: header, newsreaders aren't like to complain
very loudly if it's not there (or if the reader "thinks" it's not there).

> > And on servers like Cyclone/Typhoon running in Xref slave mode, what
> > host name ends up being on the Xref: line?  The host of the Cyclone
> > box or the reader, or what?
>
> The reader sees the Xref header exactly as the Cyclone box created it,
> which will have the Cyclone system's path-stamp on it -- not even
> necessarily a valid hostname at all, let alone the same as the one
> the newsreader is using.
>
> > I can put a hack in the server to make it modify the host name on the
> > Xref: line so it matches the reader box, but I wanted to know if this
> > was actually needed.
>
> I can't imagine that it would be necessary.  Just as an example, if it
> mattered, what would happen if a user specified the IP address rather
> than the DNS name, or used a different name for the server that happened
> to resove to the same address?  (Like, qualified versus unqualified?)

Well, once again, the reader would just treat the article like it had no
Xref: header and do the best it can without it.  Most users would never
even notice anything was different.

So if I don't but in the hack, then things might not work as well, but I'm
unlikely to get many calls.  If I put in the hack, then at least one
newsreader it seems will work better.  The hack is simple enough to add
so I guess I'm going to go ahead and do it.  It will make the article look
better.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Xref: host name not matching server name
#45295
Author: Kjetil Torgrim Homme
Date: Mon, 27 Mar 2000 00:00
23 lines
1470 bytes
[bofh@netscum.dk]

>   I can't imagine that it would be necessary.

Agreed.

>   Just as an example, if it mattered, what would happen if a user
>   specified the IP address rather than the DNS name, or used a
>   different name for the server that happened to resove to the same
>   address?  (Like, qualified versus unqualified?)

I think the "invariant" is that Xref should contain the same label as
the last (latest) entry in Path.  That's what INN does, anyway.

server:                 nntp.ifi.uio.no
pathhost:               ifi.uio.no

It's the pathhost which shows up in Xref.


Kjetil T.

Re: Xref: host name not matching server name
#45298
Author: Curt Welch
Date: Mon, 27 Mar 2000 00:00
43 lines
2919 bytes
Blackened Cajun Fluffy <supersede@india.com> wrote:
> In news.software.nntp, Jeremy <bofh@netscum.dk> wrote:
>
> [Consistency in Xref: hostnames]
>
> > I can't imagine that it would be necessary.  Just as an example, if it
> > mattered, what would happen if a user specified the IP address rather
> > than the DNS name, or used a different name for the server that
> > happened Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )
>
> Actually, RFC1036 specifies that Xref will have an _unqualified_
> hostname [in 2.2.13], so anyone looking for standard behavior couldn't
> rely on this to be a unique identifier anyway (just consider all the
> bazillions of swervers with the hostname "news").

Interesting.  But in practice I've never seen it used that way on modern
servers.  I think that's simply because 1036 comes from the days when DNS
names were still new and we were all fighting the switch to those ugly
extra long names (after all, our hostnames were already unique so we didn't
need that extra crap).  The "hostname" on the system stayed as it had been
for years (without the domain), and Path: headers as well listed the old
"hostname" without the domain.

But over time, we all gave in, and the "hostname" and the full qualified
name became the same thing.

I think the important issue is that the host name on the Xref: should match
the last(/first) host in the Path:.

> That field can serve as a debugging aid, but for the most part it's
> really superfluous.

In today's world, I agree that's the way it should be treated.  If there's
an Xref: header in the article, you should assume it's valid for the host
you are reading it from no matter what the host name field says.  But
my question wasn't how clients should treat it, but rather, how do clients
in use today actaully treat it.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Xref: host name not matching server name
#45314
Author: Greg Andrews
Date: Tue, 28 Mar 2000 00:00
30 lines
2069 bytes
curt@kcwc.com (Curt Welch) writes:
>Jeremy <bofh@netscum.dk> wrote:
>> Curt Welch <curt@kcwc.com> wrote:
>>
>> > On my server, the host name listed on the Xref: is the host that
>> > generated the line, not the host that the users are reading news
>> > from.  Is that likely to cause problems with some newsreaders?
>>
>> I haven't heard of any particular problems here.  Which isn't to say
>> there aren't any, but our system has been doing the same thing forever
>> and no one has screamed.
>
>You wouldn't expect to hear much because the typical problem it would cause
>is to not correctly mark cross posted articles as read in all the groups.
>Lots of users don't even know that newsreaders should do this, and even if
>they noticed the newsreader didn't do it, they aren't likely to blame the
>news server for the problem.
>

In my experience, the users reading from an ISP's news server are
likely to blame the news server for *every* problem they encounter
(or merely perceive).


  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@wco.com  :::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Re: Xref: host name not matching server name
#45323
Author: Sven Paulus
Date: Tue, 28 Mar 2000 00:00
24 lines
1686 bytes
In news.software.nntp Curt Welch <curt@kcwc.com> wrote:
|>> while (*curg == ' ') ++curg; /* Skip to the hostname field after Xref: */
|> But that's just the code that advances curg _to_ the host name field.  Now
|> you've made we want to look at what comes next :).

arghl, of course you're right, I shouldn't try cutting and pasting when
I'm already half asleep :)

    curg += 6;                     /* Skip over "Xref: " */

    while (*curg == ' ') ++curg;   /* Skip to the hostname field after Xref: */

    /* Skip over the hostname to the space following hostname */
    if ( (curg = strchr(curg, ' ')) == NULL ) {
        return;                    /* header is malformed, punt. */
    }

So everything is ok. Almost ok. RFC1036 talks about "white space"
between the Xref-elements, which is defined somewhere else in 1036 as
"blanks or tabs". So strpbrk(curg, " \t") is the right solution.

Sven

Re: Xref: host name not matching server name
#45329
Author: Sven Paulus
Date: Tue, 28 Mar 2000 00:00
17 lines
1291 bytes
In news.software.nntp Mike Horwath <drechsau+usenet@yuck.net> wrote:
|> : On my server, the host name listed on the Xref: is the host that
|> : generated the line, not the host that the users are reading news
|> : from.  Is that likely to cause problems with some newsreaders?
|> Yes, NN has problems with this.
|> Mr. Pins may have fixed it, but I don't think it has been done.

The source of 6.5.6 says:

    while (*curg == ' ') ++curg;   /* Skip to the hostname field after Xref: */

and there are no further checks. 

I haven't seen any newsreader which cares about the hostname in the
Xref header.

Re: Xref: host name not matching server name
#45339
Author: Curt Welch
Date: Tue, 28 Mar 2000 00:00
27 lines
1743 bytes
Sven Paulus <sven@karlsruhe.org> wrote:

> The source of 6.5.6 says:
>
> while (*curg == ' ') ++curg; /* Skip to the hostname field after Xref: */

But that's just the code that advances curg _to_ the host name field.  Now
you've made we want to look at what comes next :).

> and there are no further checks.

Ok.

> I haven't seen any newsreader which cares about the hostname in the
> Xref header.

Well my news server now has the ability to fix it anyway.  It makes things
look more consistant from the end-user's perspective even if it's not
known to be needed for any current newsreaders.

Thanks for everyone's input on this.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads