LassoScript Utility
Basics Browse Detail

[NSLookup]

Tag Link [NSLookup] Category Utility
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[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

[NSLookup: IP Address]

[NSLookup: Host Name]

Parameters

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']

127.0.0.1