Overview
The URL and Domain nodes provide the ability to parse information from a URL and convert a Domain to an IP address.
Functionality
The URL & Domain nodes expose the following functionality:
- Extract info from a URL via the
NL URL Parser
node. - Convert a Domain to it’s associated IP Address via the
NL Domain To IP
node.
Flow Nodes
The display name of the node within the flows.
When a message arrives, this node will extract the designated information about the domain from the Domain Source
string. The node will perform a DNS query on the domain or URL and output the IP Address.
The following contexts are supported:
- msg: This selects part of the incoming message as the source of the data. This is typical choice.
- flow: This selects part of the flow context’s saved data as the source. This information is shared with only the nodes on a given tab.
- global: This selects part of the global context’s saved data as the source. This information is shared by all nodes regardless of tab.
- J: expression: JSONata expression language to perform query and transform operations on the payload.
IP Destination: Destination location for the IP Address
within msg.payload
.
The display name of the node within the flows.
The action taken against the URL.
- Extract Domain and TLD: Generates a string containing both the domain and TLD (top-level domain) and places it into the
Output Field
. As a fallback on parsing errors, this action will return the full hostname if the URL is not valid. - Extract Full Hostname: Retrieves the entire hostname from the URL and places it into the
Output Field
. This includes the subdomain, the domain, and the TLD. - Extract Subdomain: Generates a string containing only the subdomain, without the domain and the TLD, and places it into the
Output Field
. As a fallback on error, this will return null. The subdomain may also be an empty string. - Extract Top-Level Domain: Generates a string containing only the TLD (top-level domain) and places it into the
Output Field
. As a fallback on error, this will return null.
When a message arrives, this node will extract the designated information about the URL from the URL Source
string. The information will be placed in the specified Output Field
within msg.payload
.
The following contexts are supported:
- msg: This selects part of the incoming message as the source of the data. This is typical choice.
- flow: This selects part of the flow context’s saved data as the source. This information is shared with only the nodes on a given tab.
- global: This selects part of the global context’s saved data as the source. This information is shared by all nodes regardless of tab.
- J: expression: JSONata expression language to perform query and transform operations on the payload.
URL Destination: Destination location for processed URL Source
within msg.payload
.
Learn More
JSON Message Format
Success
The italicized, green text is retrieved by the NL URL Parser
and NL Domain To IP
nodes. The NL URL Parser
node was configured to Extract Domain and TLD
. The NL Domain To IP
node was left with the default settings.
"payload": { "domain": "facebook.com" } } "payload": { "ip": "157.240.28.35" } }
Error
The italicized, maroon text is returned upon a failed request. The payload in the following sample was configured incorrectly.
"payload": {
"url": ".com",
"error": {
"error_code": 7,
"error_message": {
"code": "ENOTFOUND",
"errno": "ENOTFOUND",
"syscall": "getaddrinfo",
"hostname": "com"
}
},
"domain": "com"
}
}
Metro Office Park
2950 Metro Drive, Suite 104
Bloomington, MN 55425
Phone: +1 952-500-8921
©Nevelex Labs, LLC. 2018-2024, All Rights Reserved.
EULA