Resolving localhost on Windows 7 (for exim)

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jan 14 22:31:00 GMT 2015


On Jan 14 09:47, Pierre A. Humblet wrote:
> > -----Original Message-----
> > From: Corinna Vinschen
> > Sent: Tuesday, January 13, 2015 05:37
> > 
> > On Jan 12 18:14, Corinna Vinschen wrote:
> > > On Jan 12 17:51, Corinna Vinschen wrote:
> > > > On Jan 12 11:16, Pierre A. Humblet wrote:
> > > > > Now the bad news:  the exim daemon crashes.
> > > > >
> > > > > The reason is this:
> > > > > $ getent passwd exim
> > > > > NT SERVICE+exim:*:376394:376394:U-NT
> > > > > SERVICE\exim,S-1-5-80-3213360373-4072665756-2198108471-
> > 1641386292-
> > > > > 839958090:/:/sbin/nologin
> > > > >
> > > > > So even though I am requesting just "exim" I am getting an entry for "NT
> > SERVICE+exim"
> > > >
> > > > That's definitely a bug and I can easily reproduce it.  I'm not sure
> > > > yet how this happens, but this is really not ok.  I'll have a look ASAP.
> > >
> > > Oh darn, I especially *implemented* this behaviour, for the sake of
> > > being able to fetch the "TrustedInstaller" account by name.
> > >
> > > And then TrustedInstaller gets the account name "NT
> > SERVICE+TrustedInstaller"
> > > anyway, so I'm rather puzzled what I was thinking back in November.
> > >
> > > Fitting: getent passwd "NT SERVICE+servicename" does *not* work,
> > > except for "NT SERVICE+TrustedInstaller".  Oh well.
> > >
> > > I'll prepare a fix today or (more likely) tomorrow.
> > 
> > Done.  I uploaded a snapshot with this change to
> > https://cygwin.com/snapshots/  Please give it a try.
> 
> Works fine, thanks a lot.
> 
> Also earlier in this thread I reported that DnsQuery was sometime 
> failing to resolve localhost with an error (not the question/answer snafu).
> What happens is that if you ask e.g. to resolve localhost for a MX record,
> DnsQuery answers that localhost does not exist and it repeats that answer
> even for A and AAAA record for the next 15-20 min (surely the TTL).
> That's a bug I can live with (it may depend partially on the upstream
> nameservers). It will be mitigated when I add functionality to
> gethostbyname2 as discussed previously.

Excellent, thank you!


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150114/8413f27d/attachment.sig>


More information about the Cygwin mailing list