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

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close