Location2=1
- Last UpdatedFeb 14, 2023
- 1 minute read
If Location2 is set to 1, the required keyword is INPUT= . Based on the value of this keyword, the interface performs either a hostname to IP address translation or an IP address to hostname translation:
-
If the value of INPUT= is a hostname (for example, INPUT=www.osisoft.com;), the interface performs a hostname to IP address translation.
-
If the value of INPUT= is an IP address (for example, INPUT=63.95.45.104;), the interface performs an IP address to hostname translation.
For either case, when the PI point type is , the interface writes to the point the results of the translation. When the PI point type is numeric (for example, ), the interface writes the time taken to perform such a translation.
In both cases, the interface makes use of the default name server. The user can find out the name of the default name server by invoking nslookup at the command prompt. For example:
C:\> nslookup
Address: 192.168.100.45
However, the underlying method by which the interface uses to perform the address translation does not always generate a connection to the default name server. So, if the user wants to directly measure the response time of the default name server (or any name server), the operation associated with Location2 set to 10 should be used.
Note: For backwards compatibility, the keyword DEVICE= is the same as INPUT= for points with Location2 equal to 1.