Smarts ASL: How can I query DNS and convert an IP address into a Fully Qualified Domain Name (FQDN) using Smarts ASL
search cancel

Smarts ASL: How can I query DNS and convert an IP address into a Fully Qualified Domain Name (FQDN) using Smarts ASL

book

Article ID: 304067

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I query DNS and convert an IP address into a Fully Qualified Domain Name (FQDN) using Smarts ASL
How to run a DNS query for an IP address using Smarts ASL

How can I use Smarts ASL to query an IP address in DNS to find out a Fully Qualified Domain Name (FQDN)




The following shows the Smarts ASL code to convert an IP address into a Fully Qualified Domain Name (FQDN):

//Example, if IP = 10.9.1.1

if  (glob("<1-255>.<0-255>.<0-255>.<0-255>", IP) )  {  
    FQDName =object("SM-System")->addrToName(IP);
}