Path: 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: 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 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