Source for NotesSession InternetHostName and InternetDomainName properties?

I understand that both the InternetHostName and InternetDomainName properties of the NotesSession object are undocumented, but does anyone know where or how those values are set? I've got a server that appears to be adding the InternetHostName value to the InternetDomainName property. For example:

"Normal" server

InternetHostName = "host1"

InternetDomainName = "example.com"

"Bad" server

InternetHostName = "host1"

InternetDomainName = "host1.example.com"

Any ideas???

I am not positive, but I thought those just came from the Server document. I think, maybe the SMTPFullHostDomain and SMTPGlobalDomain items, though I am not certain of that. Actually, though might be more specifically for mail, so perhaps the HTTP_HostName.

So I did look through the server document looking for such an item, and found those fields. But that didn't seem to resolve the specific issue I was having. I'll elaborate...


I have a script library wherein I setup a string I call CURRENTDB_WebDomain, as follows:

CURRENTDB_WebDomain$ = LCase$(session.InternetHostName & "." & session.InternetDomainName)

We use this to generate email links back to documents on the main web site. When I check the values on a good server (via a simple agent dump), I get:

session.InternetHostName = host1
session.InternetDomainName = example.com
CURRENTDB_WebDomain$ = host1.example.com

But on the server with issues, I get:

session.InternetHostName = host1
session.InternetDomainName = host1.example.com
CURRENTDB_WebDomain$ = host1.host1.infoalt.com

As you can see, the InternetHostName gets duplicated in the second example, because it's already part of the InternetDomainName property. I suppose I could always lookup to the SMTPFullHostDomain field in the server document, but I since the session object was already instantiated in my code, I figured I'd just use that—I know that lookup won't happen often, but any place where one can cut down on lookups is, IMHO, a good thing.

You should probably check to see if the session.InternetHostName is the initial string in the session.InternetDomainName and act accordingly. That would prevent another lookup, but give you the correct results.

Yes, that was my fix. Still hopeful we can eventually determine the source of the values