This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Resolving localhost on Windows 7 (for exim)


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

Attachment: pgp12uKcuhiyG.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]