www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/16/06:39:25

Date: Sun, 16 May 1999 13:35:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Richard Dawe <richdawe AT bigfoot DOT com>
cc: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Re: $HOSTNAME doesn't override library code
In-Reply-To: <373B413E.3B1D210D@bigfoot.com>
Message-ID: <Pine.SUN.3.91.990516133519.26252F-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019