🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #245356

Re: [newspost] and stunnel

#245356
From: Bill
Date: Sun, 24 Apr 2011 13:47
35 lines
2088 bytes
Pepi <pepi@egg.nog> wrote:

>On Sat, 23 Apr 2011 23:35:55 +0000, Bill wrote:
>
>> [...]
>> Try using a server name with a HOSTS file entry. For example, use
>> news.fictious.net and make a HOSTS entry
>> 
>> 127.0.0.1	news.fictious.net
>> 
>> The OS checks the HOSTS file before attempting to check the DNS server.
>
>Thanks for your response. Appreciated!
>
>Just  one thing, if I make such an entry into the HOSTS file, wouldn't
>newspost try to contact the  news  host  directly,  instead  of  going
>through stunnel?  I mean, the HOSTS file will translate 127.0.0.1 into
>my news host's server name, right?

The OS checks the HOSTS file first, the DNS server second. It cannot
contact the server until it has the numeric address.

>I suspect it isn't stunnel that don't understand.  It's  probably  the
>newspost program that has a problem.  Sure, I have the source, but I'm
>lousy at C/C++.

What's the URL of the source? I've done enough coding that I can
probably figure it out.

>Trying  your suggestion made the  program  come  back  with  the  same
>response, however, i.e., a failure. Perhaps I'm asking too much of the
>program.

Some programs do check to make sure they aren't connecting to
the localhost. That's probably the case here.
Technical Details
Message-ID: <4ktv62.knj.17.1@news.alt.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feeder1.hal-mli.net!news.alt.net
References: <EqmdnWeIGtNGey_QnZ2dnUVZ8nWdnZ2d@giganews.com> <4ksd9t.8te.19.1@news.alt.net> <a92dndkKg8oDiCnQnZ2dnUVZ8tqdnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <4ktv62.knj.17.1@news.alt.net>
Subject: Re: [newspost] and stunnel
Date: Sun, 24 Apr 2011 13:47:12 +0000
From: "Bill"
References: <EqmdnWeIGtNGey_QnZ2dnUVZ8nWdnZ2d@giganews.com> <4ksd9t.8te.19.1@news.alt.net> <a92dndkKg8oDiCnQnZ2dnUVZ8tqdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feeder1.hal-mli.net!news.alt.net
Newsgroups: news.software.readers
Organization: Altopia Corp. - Usenet Access - www.altopia.com
Lines: 35
X-No-Archive: yes
X-Original-Bytes: 1781