Manage Learn to apply best practices and optimize your operations.

Get Internet Host And Domain Names Using (2) Hidden Properties Of The Notessession Class

You can retrieve the Internet host and domain names of the current
machine--without winsock calls--using LotusScript. There are (2) undocumented
functions in the NotesSession class that will allow you to do this:

NotesSession.InternetDomainName
NotesSession.InternetHostName

Both return strings. See code below for how you can use these in a button:
Sub Click(Source As Button)

Dim s As New NotesSession
Dim msg$

msg$ = msg$ & "Domain Name: " & s.InternetDomainName & Chr(13)
msg$ = msg$ & "Host Name: " & s.InternetHostName
Msgbox msg$, 0, "Undocumented NotesSession Functions"

End Sub

Dig Deeper on Domino Resources - Part 6

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

SearchDataCenter
SearchContentManagement
Close