Lasso Soft Inc. > Home

[NSLookup]

[NSLookup] returns the IP address if the parameter is a host name or the host name if the parameter is an IP address. Requires a single parameter.

Note: This tag is implemented in Java using the Lasso Java API (LJAPI). If Java is not installed and configured correctly then this tag will not be available.

  • Syntax
  • Parameters
[NSLookup: IP Address]

[NSLookup: Host Name]
Required Parameters
IP Address or Host Name The IP Address or Host Name which should be looked up in the domain query name server.
Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
Examples

To lookup the IP address for a host name:

Use the [NSLookup] tag. The following example returns the IP address for the host www.example.com.

[NSLookup: 'www.example.com']
Result:
127.0.0.1
Tag Link [NSLookup] Category Utility
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type String Security LJAPI
Implementation Sets Lasso 5.0,LDML3x

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft