🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3171

Re: localhost!user

#3171
From: Karl Kleinpaste
Date: Thu, 09 Feb 1989 14:43
22 lines
1262 bytes
woods@ncar.ucar.edu (Greg Woods) writes:
   Everything works, with one exception: there doesn't seem to be any way
   to look at an address of the form host!user and determine whether
   or not the host is local....
   ...
   $-!$-	$[$1.$]!$2

The problem is probably that there are 2 lines in getmxrr() (discussed
here recently) which disable search-tree resolution.  The two lines
disable the search:

        _res.options &= ~(RES_DEFNAMES | RES_DNSRCH);           /* XXX */
	[...do lookups...]
        _res.options |= RES_DEFNAMES | RES_DNSRCH;      /* XXX */

Hence, resolutions requesting $[$1$] are guaranteed to fail in all
contexts.

Just out of curiosity, why are you supporting !ish addresses for local
network hosts?

--Karl
Technical Details
Message-ID: <KARL.89Feb9094347@triceratops.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!triceratops.cis.ohio-state.edu!karl
References: <1377@ncar.ucar.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!triceratops.cis.ohio-state.edu!karl
From: karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste)
Newsgroups: comp.mail.sendmail
Subject: Re: localhost!user
Message-ID: <KARL.89Feb9094347@triceratops.cis.ohio-state.edu>
Date: 9 Feb 89 14:43:48 GMT
References: <1377@ncar.ucar.edu>
Sender: news@tut.cis.ohio-state.edu
Organization: OSU
Lines: 22
In-reply-to: woods@ncar.ucar.edu's message of 8 Feb 89 21:12:28 GMT