Article View: news.software.readers
Article #21278Re: Slrn 0.8.8 domain name recognition patch
From: Andreas Karrer
Date: Sat, 04 May 1996 00:00
Date: Sat, 04 May 1996 00:00
34 lines
2077 bytes
2077 bytes
In article <slrn4ococl.91u.leitner@xorn.prz.tu-berlin.de>, Felix von Leitner wrote: >when installing slrn under Solaris with NIS, I always have the problem >that slrn bails out with: > > Unable to find a fully qualified hostname. You will have to specify a > hostname in your .slrnrc file (slrn.rc on VMS). > >Clearly, this is not the Right Thing. This patch should correct this >problem. It makes configure look into /etc/resolv.conf to get the DNS >domain name and hard codes it into slrn. I've submitted this patch to >John Davis, but you might be interested in it, too. This will only work in one of the myriads of ways a machine can sensibly be configured: - slrn is not really interested in the fully qualified host name, it needs the domain part of the e-mail address, - some (versions of IRIX) have resolv.conf in /usr/etc, - the domain in resolv.conf need not be the "thing after the @ in the mail address", - newer resolvers use "search", not "domain" in resolv.conf, the semantics of the "domain" clause are somewhat ill-defined, - a NIS domain may or may not be the same as the DNS domain, etc etc. There is simply no portable way to find the domain part of the email address on a unix system, and making guesses might do more harm than good. I find slrn's method wholly acceptable: look up system-wide slrn.rc, then ~/.slrnrc , then envvar HOSTNAME. You can even compile it in... - Andi
Technical Details
Message-ID:
<slrn4onp1j.nu.karrer@kuru.ee.ethz.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn4ococl.91u.leitner@xorn.prz.tu-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn4onp1j.nu.karrer@kuru.ee.ethz.ch> Subject: Re: Slrn 0.8.8 domain name recognition patch Date: Sat, 04 May 1996 00:00:00 +0000 From: karrer@ife.ee.ethz.ch (Andreas Karrer) References: <slrn4ococl.91u.leitner@xorn.prz.tu-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 153040756 Organization: Institute for Electronics, ETH Zurich, Switzerland Newsgroups: news.software.readers