Date: Sun, 16 May 1999 13:35:43 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: DJGPP workers Subject: Re: $HOSTNAME doesn't override library code In-Reply-To: <373B413E.3B1D210D@bigfoot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 13 May 1999, Richard Dawe wrote: > The name returned is a LAN Manager name, which doesn't necessarily bear > any relation to the DNS name. No, the name returned is from whatever network redirector has hooked the function 5Eh of Int 21h. It is IMHO the responsibility of the redirector to return valid names. > I suppose if one was really concerned with this, one would just use > libsocket or equivalent. I think if libsocket is used it should override gethostname by a DNS-aware version. I understand that there's no way to get this information without talking to Winsock. > [ BTW Eli, I'm on the workers list, so don't worry about cc'ing me. ] I don't worry at all: my mailer is set up by default to reply to both the list and the individual addresses listed in the headers. If it bothers you, I could try to remove you from the default addressees.